From db3a4bab348936fa10bb4dec6a4ee87f9b700f08 Mon Sep 17 00:00:00 2001 From: Marijn Suijten Date: Sun, 26 Feb 2023 23:30:34 +0100 Subject: [PATCH] Update Vulkan-Headers to 1.3.242 --- Changelog.md | 2 +- ash/Cargo.toml | 2 +- ash/src/vk/const_debugs.rs | 1 + ash/src/vk/definitions.rs | 34 +++++++++++++++++++++++++++++++++- ash/src/vk/extensions.rs | 21 +++++++++++++++++++++ generator/Vulkan-Headers | 2 +- 6 files changed, 58 insertions(+), 4 deletions(-) diff --git a/Changelog.md b/Changelog.md index 4489a278e..96e5c4a30 100644 --- a/Changelog.md +++ b/Changelog.md @@ -8,7 +8,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Added -- Update Vulkan-Headers to 1.3.241 (#697) +- Update Vulkan-Headers to 1.3.242 (#697) ### Changed diff --git a/ash/Cargo.toml b/ash/Cargo.toml index 33b2d4e33..f02ce204d 100644 --- a/ash/Cargo.toml +++ b/ash/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ash" -version = "0.37.0+1.3.241" +version = "0.37.0+1.3.242" authors = [ "Maik Klein ", "Benjamin Saunders ", diff --git a/ash/src/vk/const_debugs.rs b/ash/src/vk/const_debugs.rs index 66c0527b1..c4b60e0cc 100644 --- a/ash/src/vk/const_debugs.rs +++ b/ash/src/vk/const_debugs.rs @@ -5394,6 +5394,7 @@ impl fmt::Debug for StructureType { Self::DEVICE_DIAGNOSTICS_CONFIG_CREATE_INFO_NV => { Some("DEVICE_DIAGNOSTICS_CONFIG_CREATE_INFO_NV") } + Self::QUERY_LOW_LATENCY_SUPPORT_NV => Some("QUERY_LOW_LATENCY_SUPPORT_NV"), Self::EXPORT_METAL_OBJECT_CREATE_INFO_EXT => { Some("EXPORT_METAL_OBJECT_CREATE_INFO_EXT") } diff --git a/ash/src/vk/definitions.rs b/ash/src/vk/definitions.rs index 198685975..61611a12a 100644 --- a/ash/src/vk/definitions.rs +++ b/ash/src/vk/definitions.rs @@ -58,7 +58,7 @@ pub const API_VERSION_1_2: u32 = make_api_version(0, 1, 2, 0); #[doc = ""] pub const API_VERSION_1_3: u32 = make_api_version(0, 1, 3, 0); #[doc = ""] -pub const HEADER_VERSION: u32 = 241; +pub const HEADER_VERSION: u32 = 242; #[doc = ""] pub const HEADER_VERSION_COMPLETE: u32 = make_api_version(0, 1, 3, HEADER_VERSION); #[doc = ""] @@ -47331,3 +47331,35 @@ impl<'a> MultiviewPerViewRenderAreasRenderPassBeginInfoQCOM<'a> { self } } +#[repr(C)] +#[cfg_attr(feature = "debug", derive(Debug))] +#[derive(Copy, Clone)] +#[doc = ""] +pub struct QueryLowLatencySupportNV<'a> { + pub s_type: StructureType, + pub p_next: *const c_void, + pub p_queried_low_latency_data: *mut c_void, + pub _marker: PhantomData<&'a ()>, +} +impl ::std::default::Default for QueryLowLatencySupportNV<'_> { + #[inline] + fn default() -> Self { + Self { + s_type: Self::STRUCTURE_TYPE, + p_next: ::std::ptr::null(), + p_queried_low_latency_data: ::std::ptr::null_mut(), + _marker: PhantomData, + } + } +} +unsafe impl<'a> TaggedStructure for QueryLowLatencySupportNV<'a> { + const STRUCTURE_TYPE: StructureType = StructureType::QUERY_LOW_LATENCY_SUPPORT_NV; +} +unsafe impl ExtendsSemaphoreCreateInfo for QueryLowLatencySupportNV<'_> {} +impl<'a> QueryLowLatencySupportNV<'a> { + #[inline] + pub fn queried_low_latency_data(mut self, queried_low_latency_data: *mut c_void) -> Self { + self.p_queried_low_latency_data = queried_low_latency_data; + self + } +} diff --git a/ash/src/vk/extensions.rs b/ash/src/vk/extensions.rs index 5ae74e073..f06ae2241 100644 --- a/ash/src/vk/extensions.rs +++ b/ash/src/vk/extensions.rs @@ -14967,6 +14967,27 @@ impl QcomRenderPassStoreOpsFn { impl AttachmentStoreOp { pub const NONE_QCOM: Self = Self::NONE; } +impl NvLowLatencyFn { + pub const NAME: &'static ::std::ffi::CStr = + unsafe { ::std::ffi::CStr::from_bytes_with_nul_unchecked(b"VK_NV_low_latency\0") }; + pub const SPEC_VERSION: u32 = 1u32; +} +#[derive(Clone)] +pub struct NvLowLatencyFn {} +unsafe impl Send for NvLowLatencyFn {} +unsafe impl Sync for NvLowLatencyFn {} +impl NvLowLatencyFn { + pub fn load(mut _f: F) -> Self + where + F: FnMut(&::std::ffi::CStr) -> *const c_void, + { + Self {} + } +} +#[doc = "Generated from 'VK_NV_low_latency'"] +impl StructureType { + pub const QUERY_LOW_LATENCY_SUPPORT_NV: Self = Self(1_000_310_000); +} impl ExtMetalObjectsFn { pub const NAME: &'static ::std::ffi::CStr = unsafe { ::std::ffi::CStr::from_bytes_with_nul_unchecked(b"VK_EXT_metal_objects\0") }; diff --git a/generator/Vulkan-Headers b/generator/Vulkan-Headers index bd6443d28..a3dd2655a 160000 --- a/generator/Vulkan-Headers +++ b/generator/Vulkan-Headers @@ -1 +1 @@ -Subproject commit bd6443d28f2ebecedfb839b52d612011ba623d14 +Subproject commit a3dd2655a3a68c2a67c55a0f8b77dcb8b166ada2