Skip to content

Commit

Permalink
Update Vulkan-Headers to 1.3.301
Browse files Browse the repository at this point in the history
  • Loading branch information
MarijnS95 committed Nov 2, 2024
1 parent 636c368 commit e7d0373
Show file tree
Hide file tree
Showing 6 changed files with 116 additions and 4 deletions.
8 changes: 8 additions & 0 deletions ash/src/extensions_generated.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9729,6 +9729,14 @@ pub mod huawei {
}
}
}
#[doc = "VK_HUAWEI_hdr_vivid"]
pub mod hdr_vivid {
use super::super::*;
pub use {
crate::vk::HUAWEI_HDR_VIVID_NAME as NAME,
crate::vk::HUAWEI_HDR_VIVID_SPEC_VERSION as SPEC_VERSION,
};
}
}
#[doc = "Extensions tagged IMG"]
pub mod img {
Expand Down
4 changes: 4 additions & 0 deletions ash/src/vk/const_debugs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6879,6 +6879,10 @@ impl fmt::Debug for StructureType {
Self::PIPELINE_VIEWPORT_DEPTH_CLAMP_CONTROL_CREATE_INFO_EXT => {
Some("PIPELINE_VIEWPORT_DEPTH_CLAMP_CONTROL_CREATE_INFO_EXT")
}
Self::PHYSICAL_DEVICE_HDR_VIVID_FEATURES_HUAWEI => {
Some("PHYSICAL_DEVICE_HDR_VIVID_FEATURES_HUAWEI")
}
Self::HDR_VIVID_DYNAMIC_METADATA_HUAWEI => Some("HDR_VIVID_DYNAMIC_METADATA_HUAWEI"),
Self::PHYSICAL_DEVICE_COOPERATIVE_MATRIX_2_FEATURES_NV => {
Some("PHYSICAL_DEVICE_COOPERATIVE_MATRIX_2_FEATURES_NV")
}
Expand Down
91 changes: 90 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://registry.khronos.org/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://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/VK_HEADER_VERSION.html>"]
pub const HEADER_VERSION: u32 = 300;
pub const HEADER_VERSION: u32 = 301;
#[doc = "<https://registry.khronos.org/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://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/VkSampleMask.html>"]
Expand Down Expand Up @@ -15398,6 +15398,7 @@ impl ::core::default::Default for HdrMetadataEXT<'_> {
unsafe impl<'a> TaggedStructure for HdrMetadataEXT<'a> {
const STRUCTURE_TYPE: StructureType = StructureType::HDR_METADATA_EXT;
}
pub unsafe trait ExtendsHdrMetadataEXT {}
impl<'a> HdrMetadataEXT<'a> {
#[inline]
pub fn display_primary_red(mut self, display_primary_red: XYColorEXT) -> Self {
Expand Down Expand Up @@ -15439,6 +15440,58 @@ impl<'a> HdrMetadataEXT<'a> {
self.max_frame_average_light_level = max_frame_average_light_level;
self
}
#[doc = r" Prepends the given extension struct between the root and the first pointer. This"]
#[doc = r" method only exists on structs that can be passed to a function directly. Only"]
#[doc = r" valid extension structs can be pushed into the chain."]
#[doc = r" If the chain looks like `A -> B -> C`, and you call `x.push_next(&mut D)`, then the"]
#[doc = r" chain will look like `A -> D -> B -> C`."]
pub fn push_next<T: ExtendsHdrMetadataEXT + ?Sized>(mut self, next: &'a mut T) -> Self {
unsafe {
let next_ptr = <*const T>::cast(next);
let last_next = ptr_chain_iter(next).last().unwrap();
(*last_next).p_next = self.p_next as _;
self.p_next = next_ptr;
}
self
}
}
#[repr(C)]
#[cfg_attr(feature = "debug", derive(Debug))]
#[derive(Copy, Clone)]
#[doc = "<https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/VkHdrVividDynamicMetadataHUAWEI.html>"]
#[must_use]
pub struct HdrVividDynamicMetadataHUAWEI<'a> {
pub s_type: StructureType,
pub p_next: *const c_void,
pub dynamic_metadata_size: usize,
pub p_dynamic_metadata: *const c_void,
pub _marker: PhantomData<&'a ()>,
}
unsafe impl Send for HdrVividDynamicMetadataHUAWEI<'_> {}
unsafe impl Sync for HdrVividDynamicMetadataHUAWEI<'_> {}
impl ::core::default::Default for HdrVividDynamicMetadataHUAWEI<'_> {
#[inline]
fn default() -> Self {
Self {
s_type: Self::STRUCTURE_TYPE,
p_next: ::core::ptr::null(),
dynamic_metadata_size: usize::default(),
p_dynamic_metadata: ::core::ptr::null(),
_marker: PhantomData,
}
}
}
unsafe impl<'a> TaggedStructure for HdrVividDynamicMetadataHUAWEI<'a> {
const STRUCTURE_TYPE: StructureType = StructureType::HDR_VIVID_DYNAMIC_METADATA_HUAWEI;
}
unsafe impl ExtendsHdrMetadataEXT for HdrVividDynamicMetadataHUAWEI<'_> {}
impl<'a> HdrVividDynamicMetadataHUAWEI<'a> {
#[inline]
pub fn dynamic_metadata(mut self, dynamic_metadata: &'a [u8]) -> Self {
self.dynamic_metadata_size = dynamic_metadata.len();
self.p_dynamic_metadata = dynamic_metadata.as_ptr().cast();
self
}
}
#[repr(C)]
#[cfg_attr(feature = "debug", derive(Debug))]
Expand Down Expand Up @@ -60238,3 +60291,39 @@ impl<'a> CooperativeMatrixFlexibleDimensionsPropertiesNV<'a> {
self
}
}
#[repr(C)]
#[cfg_attr(feature = "debug", derive(Debug))]
#[derive(Copy, Clone)]
#[doc = "<https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/VkPhysicalDeviceHdrVividFeaturesHUAWEI.html>"]
#[must_use]
pub struct PhysicalDeviceHdrVividFeaturesHUAWEI<'a> {
pub s_type: StructureType,
pub p_next: *mut c_void,
pub hdr_vivid: Bool32,
pub _marker: PhantomData<&'a ()>,
}
unsafe impl Send for PhysicalDeviceHdrVividFeaturesHUAWEI<'_> {}
unsafe impl Sync for PhysicalDeviceHdrVividFeaturesHUAWEI<'_> {}
impl ::core::default::Default for PhysicalDeviceHdrVividFeaturesHUAWEI<'_> {
#[inline]
fn default() -> Self {
Self {
s_type: Self::STRUCTURE_TYPE,
p_next: ::core::ptr::null_mut(),
hdr_vivid: Bool32::default(),
_marker: PhantomData,
}
}
}
unsafe impl<'a> TaggedStructure for PhysicalDeviceHdrVividFeaturesHUAWEI<'a> {
const STRUCTURE_TYPE: StructureType = StructureType::PHYSICAL_DEVICE_HDR_VIVID_FEATURES_HUAWEI;
}
unsafe impl ExtendsPhysicalDeviceFeatures2 for PhysicalDeviceHdrVividFeaturesHUAWEI<'_> {}
unsafe impl ExtendsDeviceCreateInfo for PhysicalDeviceHdrVividFeaturesHUAWEI<'_> {}
impl<'a> PhysicalDeviceHdrVividFeaturesHUAWEI<'a> {
#[inline]
pub fn hdr_vivid(mut self, hdr_vivid: bool) -> Self {
self.hdr_vivid = hdr_vivid.into();
self
}
}
2 changes: 0 additions & 2 deletions ash/src/vk/enums.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1946,8 +1946,6 @@ impl CopyAccelerationStructureModeKHR {
impl CopyAccelerationStructureModeKHR {
pub const CLONE: Self = Self(0);
pub const COMPACT: Self = Self(1);
pub const SERIALIZE: Self = Self(2);
pub const DESERIALIZE: Self = Self(3);
}
#[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash, Default)]
#[repr(transparent)]
Expand Down
13 changes: 13 additions & 0 deletions ash/src/vk/extensions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1108,6 +1108,11 @@ impl BufferUsageFlags {
pub const ACCELERATION_STRUCTURE_STORAGE_KHR: Self = Self(0b1_0000_0000_0000_0000_0000);
}
#[doc = "Generated from 'VK_KHR_acceleration_structure'"]
impl CopyAccelerationStructureModeKHR {
pub const SERIALIZE: Self = Self(2);
pub const DESERIALIZE: Self = Self(3);
}
#[doc = "Generated from 'VK_KHR_acceleration_structure'"]
impl DebugReportObjectTypeEXT {
pub const ACCELERATION_STRUCTURE_KHR: Self = Self(1_000_150_000);
}
Expand Down Expand Up @@ -4130,6 +4135,11 @@ impl StructureType {
pub const PHYSICAL_DEVICE_DEPTH_CLAMP_CONTROL_FEATURES_EXT: Self = Self(1_000_582_000);
pub const PIPELINE_VIEWPORT_DEPTH_CLAMP_CONTROL_CREATE_INFO_EXT: Self = Self(1_000_582_001);
}
#[doc = "Generated from 'VK_HUAWEI_hdr_vivid'"]
impl StructureType {
pub const PHYSICAL_DEVICE_HDR_VIVID_FEATURES_HUAWEI: Self = Self(1_000_590_000);
pub const HDR_VIVID_DYNAMIC_METADATA_HUAWEI: Self = Self(1_000_590_001);
}
#[doc = "Generated from 'VK_NV_cooperative_matrix2'"]
impl StructureType {
pub const PHYSICAL_DEVICE_COOPERATIVE_MATRIX_2_FEATURES_NV: Self = Self(1_000_593_000);
Expand Down Expand Up @@ -8205,6 +8215,9 @@ pub const MESA_IMAGE_ALIGNMENT_CONTROL_SPEC_VERSION: u32 = 1u32;
pub const EXT_DEPTH_CLAMP_CONTROL_NAME: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_EXT_depth_clamp_control\0") };
pub const EXT_DEPTH_CLAMP_CONTROL_SPEC_VERSION: u32 = 1u32;
pub const HUAWEI_HDR_VIVID_NAME: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_HUAWEI_hdr_vivid\0") };
pub const HUAWEI_HDR_VIVID_SPEC_VERSION: u32 = 1u32;
pub const NV_COOPERATIVE_MATRIX2_NAME: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_NV_cooperative_matrix2\0") };
pub const NV_COOPERATIVE_MATRIX2_SPEC_VERSION: u32 = 1u32;
Expand Down

0 comments on commit e7d0373

Please sign in to comment.