Formatting pass
This commit is contained in:
parent
90d7218bda
commit
9139ebfd95
|
@ -45,7 +45,7 @@ impl Surface {
|
||||||
|
|
||||||
match err_code {
|
match err_code {
|
||||||
vk::Result::SUCCESS => Ok(b > 0),
|
vk::Result::SUCCESS => Ok(b > 0),
|
||||||
_ => Err(err_code)
|
_ => Err(err_code),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -378,11 +378,13 @@ impl ExampleBase {
|
||||||
.filter_map(|(index, ref info)| {
|
.filter_map(|(index, ref info)| {
|
||||||
let supports_graphic_and_surface =
|
let supports_graphic_and_surface =
|
||||||
info.queue_flags.contains(vk::QueueFlags::GRAPHICS)
|
info.queue_flags.contains(vk::QueueFlags::GRAPHICS)
|
||||||
&& surface_loader.get_physical_device_surface_support(
|
&& surface_loader
|
||||||
|
.get_physical_device_surface_support(
|
||||||
*pdevice,
|
*pdevice,
|
||||||
index as u32,
|
index as u32,
|
||||||
surface,
|
surface,
|
||||||
).unwrap();
|
)
|
||||||
|
.unwrap();
|
||||||
match supports_graphic_and_surface {
|
match supports_graphic_and_surface {
|
||||||
true => Some((*pdevice, index)),
|
true => Some((*pdevice, index)),
|
||||||
_ => None,
|
_ => None,
|
||||||
|
|
Loading…
Reference in a new issue