rename parameter of get_physical_device_surface_support (#370)

* rename parameter of get_physical_device_surface_support

* fix fmt

Co-authored-by: Felix <f.drodofsky@gmail.com>
This commit is contained in:
Drodofsky 2021-02-11 20:24:49 +01:00 committed by GitHub
parent abc1f80d65
commit dd2849450f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -32,12 +32,17 @@ impl Surface {
pub unsafe fn get_physical_device_surface_support( pub unsafe fn get_physical_device_surface_support(
&self, &self,
physical_device: vk::PhysicalDevice, physical_device: vk::PhysicalDevice,
queue_index: u32, queue_family_index: u32,
surface: vk::SurfaceKHR, surface: vk::SurfaceKHR,
) -> VkResult<bool> { ) -> VkResult<bool> {
let mut b = mem::zeroed(); let mut b = mem::zeroed();
self.surface_fn 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) .result_with_success(b > 0)
} }