Skip to content

Commit 5a26862

Browse files
committed
Update Vulkan-Headers to 1.3.301
1 parent 636c368 commit 5a26862

File tree

8 files changed

+118
-6
lines changed

8 files changed

+118
-6
lines changed

Changelog.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
99

1010
### Added
1111

12-
- Update Vulkan-Headers to 1.3.300 (#910, #951)
12+
- Update Vulkan-Headers to 1.3.301 (#910, #951)
1313
- Added `VK_KHR_get_display_properties2` instance extension (#932)
1414
- Added `VK_EXT_metal_objects` device extension (#942)
1515

ash/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "ash"
3-
version = "0.38.0+1.3.300"
3+
version = "0.38.0+1.3.301"
44
authors = [
55
"Maik Klein <[email protected]>",
66
"Benjamin Saunders <[email protected]>",

ash/src/extensions_generated.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9729,6 +9729,14 @@ pub mod huawei {
97299729
}
97309730
}
97319731
}
9732+
#[doc = "VK_HUAWEI_hdr_vivid"]
9733+
pub mod hdr_vivid {
9734+
use super::super::*;
9735+
pub use {
9736+
crate::vk::HUAWEI_HDR_VIVID_NAME as NAME,
9737+
crate::vk::HUAWEI_HDR_VIVID_SPEC_VERSION as SPEC_VERSION,
9738+
};
9739+
}
97329740
}
97339741
#[doc = "Extensions tagged IMG"]
97349742
pub mod img {

ash/src/vk/const_debugs.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6879,6 +6879,10 @@ impl fmt::Debug for StructureType {
68796879
Self::PIPELINE_VIEWPORT_DEPTH_CLAMP_CONTROL_CREATE_INFO_EXT => {
68806880
Some("PIPELINE_VIEWPORT_DEPTH_CLAMP_CONTROL_CREATE_INFO_EXT")
68816881
}
6882+
Self::PHYSICAL_DEVICE_HDR_VIVID_FEATURES_HUAWEI => {
6883+
Some("PHYSICAL_DEVICE_HDR_VIVID_FEATURES_HUAWEI")
6884+
}
6885+
Self::HDR_VIVID_DYNAMIC_METADATA_HUAWEI => Some("HDR_VIVID_DYNAMIC_METADATA_HUAWEI"),
68826886
Self::PHYSICAL_DEVICE_COOPERATIVE_MATRIX_2_FEATURES_NV => {
68836887
Some("PHYSICAL_DEVICE_COOPERATIVE_MATRIX_2_FEATURES_NV")
68846888
}

ash/src/vk/definitions.rs

Lines changed: 90 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ pub const API_VERSION_1_2: u32 = make_api_version(0, 1, 2, 0);
5858
#[doc = "<https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/VK_API_VERSION_1_3.html>"]
5959
pub const API_VERSION_1_3: u32 = make_api_version(0, 1, 3, 0);
6060
#[doc = "<https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/VK_HEADER_VERSION.html>"]
61-
pub const HEADER_VERSION: u32 = 300;
61+
pub const HEADER_VERSION: u32 = 301;
6262
#[doc = "<https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/VK_HEADER_VERSION_COMPLETE.html>"]
6363
pub const HEADER_VERSION_COMPLETE: u32 = make_api_version(0, 1, 3, HEADER_VERSION);
6464
#[doc = "<https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/VkSampleMask.html>"]
@@ -15398,6 +15398,7 @@ impl ::core::default::Default for HdrMetadataEXT<'_> {
1539815398
unsafe impl<'a> TaggedStructure for HdrMetadataEXT<'a> {
1539915399
const STRUCTURE_TYPE: StructureType = StructureType::HDR_METADATA_EXT;
1540015400
}
15401+
pub unsafe trait ExtendsHdrMetadataEXT {}
1540115402
impl<'a> HdrMetadataEXT<'a> {
1540215403
#[inline]
1540315404
pub fn display_primary_red(mut self, display_primary_red: XYColorEXT) -> Self {
@@ -15439,6 +15440,58 @@ impl<'a> HdrMetadataEXT<'a> {
1543915440
self.max_frame_average_light_level = max_frame_average_light_level;
1544015441
self
1544115442
}
15443+
#[doc = r" Prepends the given extension struct between the root and the first pointer. This"]
15444+
#[doc = r" method only exists on structs that can be passed to a function directly. Only"]
15445+
#[doc = r" valid extension structs can be pushed into the chain."]
15446+
#[doc = r" If the chain looks like `A -> B -> C`, and you call `x.push_next(&mut D)`, then the"]
15447+
#[doc = r" chain will look like `A -> D -> B -> C`."]
15448+
pub fn push_next<T: ExtendsHdrMetadataEXT + ?Sized>(mut self, next: &'a mut T) -> Self {
15449+
unsafe {
15450+
let next_ptr = <*const T>::cast(next);
15451+
let last_next = ptr_chain_iter(next).last().unwrap();
15452+
(*last_next).p_next = self.p_next as _;
15453+
self.p_next = next_ptr;
15454+
}
15455+
self
15456+
}
15457+
}
15458+
#[repr(C)]
15459+
#[cfg_attr(feature = "debug", derive(Debug))]
15460+
#[derive(Copy, Clone)]
15461+
#[doc = "<https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/VkHdrVividDynamicMetadataHUAWEI.html>"]
15462+
#[must_use]
15463+
pub struct HdrVividDynamicMetadataHUAWEI<'a> {
15464+
pub s_type: StructureType,
15465+
pub p_next: *const c_void,
15466+
pub dynamic_metadata_size: usize,
15467+
pub p_dynamic_metadata: *const c_void,
15468+
pub _marker: PhantomData<&'a ()>,
15469+
}
15470+
unsafe impl Send for HdrVividDynamicMetadataHUAWEI<'_> {}
15471+
unsafe impl Sync for HdrVividDynamicMetadataHUAWEI<'_> {}
15472+
impl ::core::default::Default for HdrVividDynamicMetadataHUAWEI<'_> {
15473+
#[inline]
15474+
fn default() -> Self {
15475+
Self {
15476+
s_type: Self::STRUCTURE_TYPE,
15477+
p_next: ::core::ptr::null(),
15478+
dynamic_metadata_size: usize::default(),
15479+
p_dynamic_metadata: ::core::ptr::null(),
15480+
_marker: PhantomData,
15481+
}
15482+
}
15483+
}
15484+
unsafe impl<'a> TaggedStructure for HdrVividDynamicMetadataHUAWEI<'a> {
15485+
const STRUCTURE_TYPE: StructureType = StructureType::HDR_VIVID_DYNAMIC_METADATA_HUAWEI;
15486+
}
15487+
unsafe impl ExtendsHdrMetadataEXT for HdrVividDynamicMetadataHUAWEI<'_> {}
15488+
impl<'a> HdrVividDynamicMetadataHUAWEI<'a> {
15489+
#[inline]
15490+
pub fn dynamic_metadata(mut self, dynamic_metadata: &'a [u8]) -> Self {
15491+
self.dynamic_metadata_size = dynamic_metadata.len();
15492+
self.p_dynamic_metadata = dynamic_metadata.as_ptr().cast();
15493+
self
15494+
}
1544215495
}
1544315496
#[repr(C)]
1544415497
#[cfg_attr(feature = "debug", derive(Debug))]
@@ -60238,3 +60291,39 @@ impl<'a> CooperativeMatrixFlexibleDimensionsPropertiesNV<'a> {
6023860291
self
6023960292
}
6024060293
}
60294+
#[repr(C)]
60295+
#[cfg_attr(feature = "debug", derive(Debug))]
60296+
#[derive(Copy, Clone)]
60297+
#[doc = "<https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/VkPhysicalDeviceHdrVividFeaturesHUAWEI.html>"]
60298+
#[must_use]
60299+
pub struct PhysicalDeviceHdrVividFeaturesHUAWEI<'a> {
60300+
pub s_type: StructureType,
60301+
pub p_next: *mut c_void,
60302+
pub hdr_vivid: Bool32,
60303+
pub _marker: PhantomData<&'a ()>,
60304+
}
60305+
unsafe impl Send for PhysicalDeviceHdrVividFeaturesHUAWEI<'_> {}
60306+
unsafe impl Sync for PhysicalDeviceHdrVividFeaturesHUAWEI<'_> {}
60307+
impl ::core::default::Default for PhysicalDeviceHdrVividFeaturesHUAWEI<'_> {
60308+
#[inline]
60309+
fn default() -> Self {
60310+
Self {
60311+
s_type: Self::STRUCTURE_TYPE,
60312+
p_next: ::core::ptr::null_mut(),
60313+
hdr_vivid: Bool32::default(),
60314+
_marker: PhantomData,
60315+
}
60316+
}
60317+
}
60318+
unsafe impl<'a> TaggedStructure for PhysicalDeviceHdrVividFeaturesHUAWEI<'a> {
60319+
const STRUCTURE_TYPE: StructureType = StructureType::PHYSICAL_DEVICE_HDR_VIVID_FEATURES_HUAWEI;
60320+
}
60321+
unsafe impl ExtendsPhysicalDeviceFeatures2 for PhysicalDeviceHdrVividFeaturesHUAWEI<'_> {}
60322+
unsafe impl ExtendsDeviceCreateInfo for PhysicalDeviceHdrVividFeaturesHUAWEI<'_> {}
60323+
impl<'a> PhysicalDeviceHdrVividFeaturesHUAWEI<'a> {
60324+
#[inline]
60325+
pub fn hdr_vivid(mut self, hdr_vivid: bool) -> Self {
60326+
self.hdr_vivid = hdr_vivid.into();
60327+
self
60328+
}
60329+
}

ash/src/vk/enums.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1946,8 +1946,6 @@ impl CopyAccelerationStructureModeKHR {
19461946
impl CopyAccelerationStructureModeKHR {
19471947
pub const CLONE: Self = Self(0);
19481948
pub const COMPACT: Self = Self(1);
1949-
pub const SERIALIZE: Self = Self(2);
1950-
pub const DESERIALIZE: Self = Self(3);
19511949
}
19521950
#[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash, Default)]
19531951
#[repr(transparent)]

ash/src/vk/extensions.rs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1108,6 +1108,11 @@ impl BufferUsageFlags {
11081108
pub const ACCELERATION_STRUCTURE_STORAGE_KHR: Self = Self(0b1_0000_0000_0000_0000_0000);
11091109
}
11101110
#[doc = "Generated from 'VK_KHR_acceleration_structure'"]
1111+
impl CopyAccelerationStructureModeKHR {
1112+
pub const SERIALIZE: Self = Self(2);
1113+
pub const DESERIALIZE: Self = Self(3);
1114+
}
1115+
#[doc = "Generated from 'VK_KHR_acceleration_structure'"]
11111116
impl DebugReportObjectTypeEXT {
11121117
pub const ACCELERATION_STRUCTURE_KHR: Self = Self(1_000_150_000);
11131118
}
@@ -4130,6 +4135,11 @@ impl StructureType {
41304135
pub const PHYSICAL_DEVICE_DEPTH_CLAMP_CONTROL_FEATURES_EXT: Self = Self(1_000_582_000);
41314136
pub const PIPELINE_VIEWPORT_DEPTH_CLAMP_CONTROL_CREATE_INFO_EXT: Self = Self(1_000_582_001);
41324137
}
4138+
#[doc = "Generated from 'VK_HUAWEI_hdr_vivid'"]
4139+
impl StructureType {
4140+
pub const PHYSICAL_DEVICE_HDR_VIVID_FEATURES_HUAWEI: Self = Self(1_000_590_000);
4141+
pub const HDR_VIVID_DYNAMIC_METADATA_HUAWEI: Self = Self(1_000_590_001);
4142+
}
41334143
#[doc = "Generated from 'VK_NV_cooperative_matrix2'"]
41344144
impl StructureType {
41354145
pub const PHYSICAL_DEVICE_COOPERATIVE_MATRIX_2_FEATURES_NV: Self = Self(1_000_593_000);
@@ -8205,6 +8215,9 @@ pub const MESA_IMAGE_ALIGNMENT_CONTROL_SPEC_VERSION: u32 = 1u32;
82058215
pub const EXT_DEPTH_CLAMP_CONTROL_NAME: &CStr =
82068216
unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_EXT_depth_clamp_control\0") };
82078217
pub const EXT_DEPTH_CLAMP_CONTROL_SPEC_VERSION: u32 = 1u32;
8218+
pub const HUAWEI_HDR_VIVID_NAME: &CStr =
8219+
unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_HUAWEI_hdr_vivid\0") };
8220+
pub const HUAWEI_HDR_VIVID_SPEC_VERSION: u32 = 1u32;
82088221
pub const NV_COOPERATIVE_MATRIX2_NAME: &CStr =
82098222
unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_NV_cooperative_matrix2\0") };
82108223
pub const NV_COOPERATIVE_MATRIX2_SPEC_VERSION: u32 = 1u32;

0 commit comments

Comments
 (0)