diff --git a/ash/src/extensions/ext/descriptor_indexing.rs b/ash/src/extensions/ext/descriptor_indexing.rs new file mode 100644 index 0000000..daa448b --- /dev/null +++ b/ash/src/extensions/ext/descriptor_indexing.rs @@ -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") + } +} diff --git a/ash/src/extensions/ext/mod.rs b/ash/src/extensions/ext/mod.rs index eba690f..5d6bf89 100644 --- a/ash/src/extensions/ext/mod.rs +++ b/ash/src/extensions/ext/mod.rs @@ -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") +}