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:
parent
abc1f80d65
commit
dd2849450f
1 changed files with 7 additions and 2 deletions
|
@ -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)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue