parent
29c8a08720
commit
511a5589db
1 changed files with 8 additions and 6 deletions
14
src/main.rs
14
src/main.rs
|
@ -718,13 +718,15 @@ impl VulkanApp {
|
||||||
|
|
||||||
fn choose_swap_present_mode(
|
fn choose_swap_present_mode(
|
||||||
&self,
|
&self,
|
||||||
available_present_modes: &Vec<ffi::VkPresentModeKHR>,
|
_available_present_modes: &Vec<ffi::VkPresentModeKHR>,
|
||||||
) -> ffi::VkPresentModeKHR {
|
) -> ffi::VkPresentModeKHR {
|
||||||
for mode in available_present_modes {
|
// Default to FIFO, don't check for MAILBOX.
|
||||||
if *mode == ffi::VkPresentModeKHR_VK_PRESENT_MODE_MAILBOX_KHR {
|
|
||||||
return ffi::VkPresentModeKHR_VK_PRESENT_MODE_MAILBOX_KHR;
|
//for mode in available_present_modes {
|
||||||
}
|
// if *mode == ffi::VkPresentModeKHR_VK_PRESENT_MODE_MAILBOX_KHR {
|
||||||
}
|
// return ffi::VkPresentModeKHR_VK_PRESENT_MODE_MAILBOX_KHR;
|
||||||
|
// }
|
||||||
|
//}
|
||||||
|
|
||||||
ffi::VkPresentModeKHR_VK_PRESENT_MODE_FIFO_KHR
|
ffi::VkPresentModeKHR_VK_PRESENT_MODE_FIFO_KHR
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue