Added DescriptorIndexing extension (just name for now), and also added names for VK_KHR_get_memory_requirements2 and VK_KHR_get_physical_device_properties2 (both are commonly used, and required for ray tracing)

This commit is contained in:
Graham Wihlidal 2019-02-10 23:54:44 +01:00
parent f348ddc33e
commit 011e9e611f
2 changed files with 22 additions and 0 deletions

View file

@ -0,0 +1,10 @@
use std::ffi::CStr;
#[derive(Clone)]
pub struct DescriptorIndexing {}
impl DescriptorIndexing {
pub fn name() -> &'static CStr {
CStr::from_bytes_with_nul(b"VK_EXT_descriptor_indexing\0").expect("Wrong extension string")
}
}

View file

@ -1,7 +1,19 @@
pub use self::debug_marker::DebugMarker;
pub use self::debug_report::DebugReport;
pub use self::debug_utils::DebugUtils;
pub use self::descriptor_indexing::DescriptorIndexing;
mod debug_marker;
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")
}