Skip to content

Commit

Permalink
Update Vulkan-Headers to 1.3.242
Browse files Browse the repository at this point in the history
  • Loading branch information
MarijnS95 committed Feb 26, 2023
1 parent 3766a03 commit b18bb70
Show file tree
Hide file tree
Showing 4 changed files with 58 additions and 2 deletions.
1 change: 1 addition & 0 deletions ash/src/vk/const_debugs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5531,6 +5531,7 @@ impl fmt::Debug for StructureType {
Some("DEVICE_DIAGNOSTICS_CONFIG_CREATE_INFO_NV")
}
Self::REFRESH_OBJECT_LIST_KHR => Some("REFRESH_OBJECT_LIST_KHR"),
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")
}
Expand Down
34 changes: 33 additions & 1 deletion ash/src/vk/definitions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ pub const API_VERSION_1_2: u32 = make_api_version(0, 1, 2, 0);
#[doc = "<https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/VK_API_VERSION_1_3.html>"]
pub const API_VERSION_1_3: u32 = make_api_version(0, 1, 3, 0);
#[doc = "<https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/VK_HEADER_VERSION.html>"]
pub const HEADER_VERSION: u32 = 241;
pub const HEADER_VERSION: u32 = 242;
#[doc = "<https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/VK_HEADER_VERSION_COMPLETE.html>"]
pub const HEADER_VERSION_COMPLETE: u32 = make_api_version(0, 1, 3, HEADER_VERSION);
#[doc = "<https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/VkSampleMask.html>"]
Expand Down Expand Up @@ -49145,3 +49145,35 @@ impl<'a> MultiviewPerViewRenderAreasRenderPassBeginInfoQCOM<'a> {
self
}
}
#[repr(C)]
#[cfg_attr(feature = "debug", derive(Debug))]
#[derive(Copy, Clone)]
#[doc = "<https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/VkQueryLowLatencySupportNV.html>"]
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
}
}
23 changes: 23 additions & 0 deletions ash/src/vk/extensions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15658,6 +15658,29 @@ impl KhrObjectRefreshFn {
impl StructureType {
pub const REFRESH_OBJECT_LIST_KHR: Self = Self(1_000_308_000);
}
impl NvLowLatencyFn {
#[inline]
pub const fn 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<F>(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 {
#[inline]
pub const fn name() -> &'static ::std::ffi::CStr {
Expand Down

0 comments on commit b18bb70

Please sign in to comment.