From dd2849450fca7a6361fa51883bda7a37daf2add5 Mon Sep 17 00:00:00 2001 From: Drodofsky <74094108+Drodofsky@users.noreply.github.com> Date: Thu, 11 Feb 2021 20:24:49 +0100 Subject: [PATCH] rename parameter of get_physical_device_surface_support (#370) * rename parameter of get_physical_device_surface_support * fix fmt Co-authored-by: Felix --- ash/src/extensions/khr/surface.rs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/ash/src/extensions/khr/surface.rs b/ash/src/extensions/khr/surface.rs index f702796..8ea56fb 100755 --- a/ash/src/extensions/khr/surface.rs +++ b/ash/src/extensions/khr/surface.rs @@ -32,12 +32,17 @@ impl Surface { pub unsafe fn get_physical_device_surface_support( &self, physical_device: vk::PhysicalDevice, - queue_index: u32, + queue_family_index: u32, surface: vk::SurfaceKHR, ) -> VkResult { let mut b = mem::zeroed(); self.surface_fn - .get_physical_device_surface_support_khr(physical_device, queue_index, surface, &mut b) + .get_physical_device_surface_support_khr( + physical_device, + queue_family_index, + surface, + &mut b, + ) .result_with_success(b > 0) }