diff --git a/Changelog.md b/Changelog.md index 7a8f899ac..364ac629e 100644 --- a/Changelog.md +++ b/Changelog.md @@ -9,7 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Added -- Update Vulkan-Headers to 1.3.284 (#910) +- Update Vulkan-Headers to 1.3.285 (#910) ## [0.38.0] - 2024-04-01 diff --git a/ash/Cargo.toml b/ash/Cargo.toml index 9db9b3685..d24451300 100644 --- a/ash/Cargo.toml +++ b/ash/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ash" -version = "0.38.0+1.3.284" +version = "0.38.0+1.3.285" authors = [ "Maik Klein ", "Benjamin Saunders ", diff --git a/ash/src/extensions_generated.rs b/ash/src/extensions_generated.rs index e8dfcd7d3..6c94ab9c7 100644 --- a/ash/src/extensions_generated.rs +++ b/ash/src/extensions_generated.rs @@ -16997,6 +16997,17 @@ pub mod lunarg { }; } } +#[doc = "Extensions tagged MESA"] +pub mod mesa { + #[doc = "VK_MESA_image_alignment_control"] + pub mod image_alignment_control { + use super::super::*; + pub use { + crate::vk::MESA_IMAGE_ALIGNMENT_CONTROL_NAME as NAME, + crate::vk::MESA_IMAGE_ALIGNMENT_CONTROL_SPEC_VERSION as SPEC_VERSION, + }; + } +} #[doc = "Extensions tagged MSFT"] pub mod msft { #[doc = "VK_MSFT_layered_driver"] diff --git a/ash/src/vk/const_debugs.rs b/ash/src/vk/const_debugs.rs index e7c829aab..6de5b289e 100644 --- a/ash/src/vk/const_debugs.rs +++ b/ash/src/vk/const_debugs.rs @@ -6623,6 +6623,15 @@ impl fmt::Debug for StructureType { Self::PHYSICAL_DEVICE_RAY_TRACING_VALIDATION_FEATURES_NV => { Some("PHYSICAL_DEVICE_RAY_TRACING_VALIDATION_FEATURES_NV") } + Self::PHYSICAL_DEVICE_IMAGE_ALIGNMENT_CONTROL_FEATURES_MESA => { + Some("PHYSICAL_DEVICE_IMAGE_ALIGNMENT_CONTROL_FEATURES_MESA") + } + Self::PHYSICAL_DEVICE_IMAGE_ALIGNMENT_CONTROL_PROPERTIES_MESA => { + Some("PHYSICAL_DEVICE_IMAGE_ALIGNMENT_CONTROL_PROPERTIES_MESA") + } + Self::IMAGE_ALIGNMENT_CONTROL_CREATE_INFO_MESA => { + Some("IMAGE_ALIGNMENT_CONTROL_CREATE_INFO_MESA") + } Self::PHYSICAL_DEVICE_SUBGROUP_PROPERTIES => { Some("PHYSICAL_DEVICE_SUBGROUP_PROPERTIES") } diff --git a/ash/src/vk/definitions.rs b/ash/src/vk/definitions.rs index 4fa09a08b..2b1c38f62 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 = 284; +pub const HEADER_VERSION: u32 = 285; #[doc = ""] pub const HEADER_VERSION_COMPLETE: u32 = make_api_version(0, 1, 3, HEADER_VERSION); #[doc = ""] @@ -57506,3 +57506,114 @@ impl<'a> PhysicalDeviceRawAccessChainsFeaturesNV<'a> { self } } +#[repr(C)] +#[cfg_attr(feature = "debug", derive(Debug))] +#[derive(Copy, Clone)] +#[doc = ""] +#[must_use] +pub struct PhysicalDeviceImageAlignmentControlFeaturesMESA<'a> { + pub s_type: StructureType, + pub p_next: *mut c_void, + pub image_alignment_control: Bool32, + pub _marker: PhantomData<&'a ()>, +} +unsafe impl Send for PhysicalDeviceImageAlignmentControlFeaturesMESA<'_> {} +unsafe impl Sync for PhysicalDeviceImageAlignmentControlFeaturesMESA<'_> {} +impl ::core::default::Default for PhysicalDeviceImageAlignmentControlFeaturesMESA<'_> { + #[inline] + fn default() -> Self { + Self { + s_type: Self::STRUCTURE_TYPE, + p_next: ::core::ptr::null_mut(), + image_alignment_control: Bool32::default(), + _marker: PhantomData, + } + } +} +unsafe impl<'a> TaggedStructure for PhysicalDeviceImageAlignmentControlFeaturesMESA<'a> { + const STRUCTURE_TYPE: StructureType = + StructureType::PHYSICAL_DEVICE_IMAGE_ALIGNMENT_CONTROL_FEATURES_MESA; +} +unsafe impl ExtendsPhysicalDeviceFeatures2 for PhysicalDeviceImageAlignmentControlFeaturesMESA<'_> {} +unsafe impl ExtendsDeviceCreateInfo for PhysicalDeviceImageAlignmentControlFeaturesMESA<'_> {} +impl<'a> PhysicalDeviceImageAlignmentControlFeaturesMESA<'a> { + #[inline] + pub fn image_alignment_control(mut self, image_alignment_control: bool) -> Self { + self.image_alignment_control = image_alignment_control.into(); + self + } +} +#[repr(C)] +#[cfg_attr(feature = "debug", derive(Debug))] +#[derive(Copy, Clone)] +#[doc = ""] +#[must_use] +pub struct PhysicalDeviceImageAlignmentControlPropertiesMESA<'a> { + pub s_type: StructureType, + pub p_next: *mut c_void, + pub supported_image_alignment_mask: u32, + pub _marker: PhantomData<&'a ()>, +} +unsafe impl Send for PhysicalDeviceImageAlignmentControlPropertiesMESA<'_> {} +unsafe impl Sync for PhysicalDeviceImageAlignmentControlPropertiesMESA<'_> {} +impl ::core::default::Default for PhysicalDeviceImageAlignmentControlPropertiesMESA<'_> { + #[inline] + fn default() -> Self { + Self { + s_type: Self::STRUCTURE_TYPE, + p_next: ::core::ptr::null_mut(), + supported_image_alignment_mask: u32::default(), + _marker: PhantomData, + } + } +} +unsafe impl<'a> TaggedStructure for PhysicalDeviceImageAlignmentControlPropertiesMESA<'a> { + const STRUCTURE_TYPE: StructureType = + StructureType::PHYSICAL_DEVICE_IMAGE_ALIGNMENT_CONTROL_PROPERTIES_MESA; +} +unsafe impl ExtendsPhysicalDeviceProperties2 + for PhysicalDeviceImageAlignmentControlPropertiesMESA<'_> +{ +} +impl<'a> PhysicalDeviceImageAlignmentControlPropertiesMESA<'a> { + #[inline] + pub fn supported_image_alignment_mask(mut self, supported_image_alignment_mask: u32) -> Self { + self.supported_image_alignment_mask = supported_image_alignment_mask; + self + } +} +#[repr(C)] +#[cfg_attr(feature = "debug", derive(Debug))] +#[derive(Copy, Clone)] +#[doc = ""] +#[must_use] +pub struct ImageAlignmentControlCreateInfoMESA<'a> { + pub s_type: StructureType, + pub p_next: *const c_void, + pub maximum_requested_alignment: u32, + pub _marker: PhantomData<&'a ()>, +} +unsafe impl Send for ImageAlignmentControlCreateInfoMESA<'_> {} +unsafe impl Sync for ImageAlignmentControlCreateInfoMESA<'_> {} +impl ::core::default::Default for ImageAlignmentControlCreateInfoMESA<'_> { + #[inline] + fn default() -> Self { + Self { + s_type: Self::STRUCTURE_TYPE, + p_next: ::core::ptr::null(), + maximum_requested_alignment: u32::default(), + _marker: PhantomData, + } + } +} +unsafe impl<'a> TaggedStructure for ImageAlignmentControlCreateInfoMESA<'a> { + const STRUCTURE_TYPE: StructureType = StructureType::IMAGE_ALIGNMENT_CONTROL_CREATE_INFO_MESA; +} +unsafe impl ExtendsImageCreateInfo for ImageAlignmentControlCreateInfoMESA<'_> {} +impl<'a> ImageAlignmentControlCreateInfoMESA<'a> { + #[inline] + pub fn maximum_requested_alignment(mut self, maximum_requested_alignment: u32) -> Self { + self.maximum_requested_alignment = maximum_requested_alignment; + self + } +} diff --git a/ash/src/vk/extensions.rs b/ash/src/vk/extensions.rs index 5806758fa..03039efba 100644 --- a/ash/src/vk/extensions.rs +++ b/ash/src/vk/extensions.rs @@ -3965,6 +3965,12 @@ impl StructureType { impl StructureType { pub const PHYSICAL_DEVICE_RAY_TRACING_VALIDATION_FEATURES_NV: Self = Self(1_000_568_000); } +#[doc = "Generated from 'VK_MESA_image_alignment_control'"] +impl StructureType { + pub const PHYSICAL_DEVICE_IMAGE_ALIGNMENT_CONTROL_FEATURES_MESA: Self = Self(1_000_575_000); + pub const PHYSICAL_DEVICE_IMAGE_ALIGNMENT_CONTROL_PROPERTIES_MESA: Self = Self(1_000_575_001); + pub const IMAGE_ALIGNMENT_CONTROL_CREATE_INFO_MESA: Self = Self(1_000_575_002); +} pub const KHR_SURFACE_NAME: &CStr = unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_KHR_surface\0") }; pub const KHR_SURFACE_SPEC_VERSION: u32 = 25u32; @@ -7894,3 +7900,6 @@ pub const NV_SHADER_ATOMIC_FLOAT16_VECTOR_SPEC_VERSION: u32 = 1u32; pub const NV_RAY_TRACING_VALIDATION_NAME: &CStr = unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_NV_ray_tracing_validation\0") }; pub const NV_RAY_TRACING_VALIDATION_SPEC_VERSION: u32 = 1u32; +pub const MESA_IMAGE_ALIGNMENT_CONTROL_NAME: &CStr = + unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_MESA_image_alignment_control\0") }; +pub const MESA_IMAGE_ALIGNMENT_CONTROL_SPEC_VERSION: u32 = 1u32; diff --git a/generator/Vulkan-Headers b/generator/Vulkan-Headers index 4bc77c26f..5677bafb8 160000 --- a/generator/Vulkan-Headers +++ b/generator/Vulkan-Headers @@ -1 +1 @@ -Subproject commit 4bc77c26ff9ce89cf4a4f79e1c24a44604132d53 +Subproject commit 5677bafb820e476441e9e1f745371b72133407d3