Added maintenance 1-3 extension names to khr/mod.rs and moved KHR extension names from EXT to proper place.

This commit is contained in:
Graham Wihlidal 2019-02-11 15:43:49 +01:00
parent 3a76e81d3a
commit 09ee78401f
2 changed files with 25 additions and 9 deletions

View file

@ -8,12 +8,3 @@ mod debug_report;
mod debug_utils;
mod descriptor_indexing;
pub fn memory_requirements2_name() -> &'static std::ffi::CStr {
std::ffi::CStr::from_bytes_with_nul(b"VK_KHR_get_memory_requirements2\0")
.expect("Wrong extension string")
}
pub fn physical_device_properties2_name() -> &'static std::ffi::CStr {
std::ffi::CStr::from_bytes_with_nul(b"VK_KHR_get_physical_device_properties2\0")
.expect("Wrong extension string")
}

View file

@ -15,3 +15,28 @@ mod wayland_surface;
mod win32_surface;
mod xcb_surface;
mod xlib_surface;
pub fn memory_requirements2_name() -> &'static std::ffi::CStr {
std::ffi::CStr::from_bytes_with_nul(b"VK_KHR_get_memory_requirements2\0")
.expect("Wrong extension string")
}
pub fn physical_device_properties2_name() -> &'static std::ffi::CStr {
std::ffi::CStr::from_bytes_with_nul(b"VK_KHR_get_physical_device_properties2\0")
.expect("Wrong extension string")
}
pub fn maintenance1_name() -> &'static std::ffi::CStr {
std::ffi::CStr::from_bytes_with_nul(b"VK_KHR_maintenance1\0")
.expect("Wrong extension string")
}
pub fn maintenance2_name() -> &'static std::ffi::CStr {
std::ffi::CStr::from_bytes_with_nul(b"VK_KHR_maintenance2\0")
.expect("Wrong extension string")
}
pub fn maintenance3_name() -> &'static std::ffi::CStr {
std::ffi::CStr::from_bytes_with_nul(b"VK_KHR_maintenance3\0")
.expect("Wrong extension string")
}