diff --git a/Changelog.md b/Changelog.md index 784ae38..1e7e3d6 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.210 (#605) +- Update Vulkan-Headers to 1.3.211 (#605, #608) ## [0.37.0] - 2022-03-23 diff --git a/ash/Cargo.toml b/ash/Cargo.toml index c4e05ff..86d7f84 100644 --- a/ash/Cargo.toml +++ b/ash/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ash" -version = "0.37.0+1.3.210" +version = "0.37.0+1.3.211" authors = ["maik klein "] description = "Vulkan bindings for Rust" license = "MIT" diff --git a/ash/src/vk/bitflags.rs b/ash/src/vk/bitflags.rs index bf3752e..6032cef 100644 --- a/ash/src/vk/bitflags.rs +++ b/ash/src/vk/bitflags.rs @@ -1054,7 +1054,7 @@ impl PipelineStageFlags2 { pub const ALL_TRANSFER: Self = Self(0b1_0000_0000_0000); pub const ALL_TRANSFER_KHR: Self = Self::ALL_TRANSFER; pub const TRANSFER: Self = Self::ALL_TRANSFER_KHR; - pub const TRANSFER_KHR: Self = Self::TRANSFER; + pub const TRANSFER_KHR: Self = Self::ALL_TRANSFER; pub const BOTTOM_OF_PIPE: Self = Self(0b10_0000_0000_0000); pub const BOTTOM_OF_PIPE_KHR: Self = Self::BOTTOM_OF_PIPE; pub const HOST: Self = Self(0b100_0000_0000_0000); @@ -1436,20 +1436,22 @@ impl VideoEncodeH265CapabilityFlagsEXT { pub const LOG2_PARALLEL_MERGE_LEVEL_MINUS2: Self = Self(0b1000_0000); pub const SIGN_DATA_HIDING_ENABLED: Self = Self(0b1_0000_0000); pub const TRANSFORM_SKIP_ENABLED: Self = Self(0b10_0000_0000); - pub const PPS_SLICE_CHROMA_QP_OFFSETS_PRESENT: Self = Self(0b100_0000_0000); - pub const WEIGHTED_PRED: Self = Self(0b1000_0000_0000); - pub const WEIGHTED_BIPRED: Self = Self(0b1_0000_0000_0000); - pub const WEIGHTED_PRED_NO_TABLE: Self = Self(0b10_0000_0000_0000); - pub const TRANSQUANT_BYPASS_ENABLED: Self = Self(0b100_0000_0000_0000); - pub const ENTROPY_CODING_SYNC_ENABLED: Self = Self(0b1000_0000_0000_0000); - pub const DEBLOCKING_FILTER_OVERRIDE_ENABLED: Self = Self(0b1_0000_0000_0000_0000); - pub const MULTIPLE_TILE_PER_FRAME: Self = Self(0b10_0000_0000_0000_0000); - pub const MULTIPLE_SLICE_PER_TILE: Self = Self(0b100_0000_0000_0000_0000); - pub const MULTIPLE_TILE_PER_SLICE: Self = Self(0b1000_0000_0000_0000_0000); - pub const SLICE_SEGMENT_CTB_COUNT: Self = Self(0b1_0000_0000_0000_0000_0000); - pub const ROW_UNALIGNED_SLICE_SEGMENT: Self = Self(0b10_0000_0000_0000_0000_0000); - pub const DEPENDENT_SLICE_SEGMENT: Self = Self(0b100_0000_0000_0000_0000_0000); - pub const DIFFERENT_SLICE_TYPE: Self = Self(0b1000_0000_0000_0000_0000_0000); + pub const TRANSFORM_SKIP_DISABLED: Self = Self(0b100_0000_0000); + pub const PPS_SLICE_CHROMA_QP_OFFSETS_PRESENT: Self = Self(0b1000_0000_0000); + pub const WEIGHTED_PRED: Self = Self(0b1_0000_0000_0000); + pub const WEIGHTED_BIPRED: Self = Self(0b10_0000_0000_0000); + pub const WEIGHTED_PRED_NO_TABLE: Self = Self(0b100_0000_0000_0000); + pub const TRANSQUANT_BYPASS_ENABLED: Self = Self(0b1000_0000_0000_0000); + pub const ENTROPY_CODING_SYNC_ENABLED: Self = Self(0b1_0000_0000_0000_0000); + pub const DEBLOCKING_FILTER_OVERRIDE_ENABLED: Self = Self(0b10_0000_0000_0000_0000); + pub const MULTIPLE_TILE_PER_FRAME: Self = Self(0b100_0000_0000_0000_0000); + pub const MULTIPLE_SLICE_PER_TILE: Self = Self(0b1000_0000_0000_0000_0000); + pub const MULTIPLE_TILE_PER_SLICE: Self = Self(0b1_0000_0000_0000_0000_0000); + pub const SLICE_SEGMENT_CTB_COUNT: Self = Self(0b10_0000_0000_0000_0000_0000); + pub const ROW_UNALIGNED_SLICE_SEGMENT: Self = Self(0b100_0000_0000_0000_0000_0000); + pub const DEPENDENT_SLICE_SEGMENT: Self = Self(0b1000_0000_0000_0000_0000_0000); + pub const DIFFERENT_SLICE_TYPE: Self = Self(0b1_0000_0000_0000_0000_0000_0000); + pub const B_FRAME_IN_L1_LIST: Self = Self(0b10_0000_0000_0000_0000_0000_0000); } #[repr(transparent)] #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)] diff --git a/ash/src/vk/const_debugs.rs b/ash/src/vk/const_debugs.rs index c1cad95..20d048f 100644 --- a/ash/src/vk/const_debugs.rs +++ b/ash/src/vk/const_debugs.rs @@ -305,6 +305,8 @@ impl fmt::Debug for AccessFlags2 { "INVOCATION_MASK_READ_HUAWEI", ), (AccessFlags2::RESERVED_387_KHR.0, "RESERVED_387_KHR"), + (AccessFlags2::RESERVED_44_NV.0, "RESERVED_44_NV"), + (AccessFlags2::RESERVED_45_NV.0, "RESERVED_45_NV"), (AccessFlags2::RESERVED_42_NV.0, "RESERVED_42_NV"), (AccessFlags2::RESERVED_43_NV.0, "RESERVED_43_NV"), ]; @@ -566,6 +568,8 @@ impl fmt::Debug for BufferUsageFlags { ), (BufferUsageFlags::RESERVED_21_AMD.0, "RESERVED_21_AMD"), (BufferUsageFlags::RESERVED_22_AMD.0, "RESERVED_22_AMD"), + (BufferUsageFlags::RESERVED_23_NV.0, "RESERVED_23_NV"), + (BufferUsageFlags::RESERVED_24_NV.0, "RESERVED_24_NV"), ( BufferUsageFlags::SHADER_DEVICE_ADDRESS.0, "SHADER_DEVICE_ADDRESS", @@ -604,6 +608,14 @@ impl fmt::Debug for BuildAccelerationStructureFlagsKHR { "LOW_MEMORY", ), (BuildAccelerationStructureFlagsKHR::MOTION_NV.0, "MOTION_NV"), + ( + BuildAccelerationStructureFlagsKHR::RESERVED_6_NV.0, + "RESERVED_6_NV", + ), + ( + BuildAccelerationStructureFlagsKHR::RESERVED_7_NV.0, + "RESERVED_7_NV", + ), ]; debug_flags(f, KNOWN, self.0) } @@ -2051,6 +2063,8 @@ impl fmt::Debug for GeometryInstanceFlagsKHR { GeometryInstanceFlagsKHR::FORCE_NO_OPAQUE.0, "FORCE_NO_OPAQUE", ), + (GeometryInstanceFlagsKHR::RESERVED_4_NV.0, "RESERVED_4_NV"), + (GeometryInstanceFlagsKHR::RESERVED_5_NV.0, "RESERVED_5_NV"), ]; debug_flags(f, KNOWN, self.0) } @@ -2167,7 +2181,10 @@ impl fmt::Debug for ImageCreateFlags { (ImageCreateFlags::SUBSAMPLED_EXT.0, "SUBSAMPLED_EXT"), (ImageCreateFlags::RESERVED_16_AMD.0, "RESERVED_16_AMD"), (ImageCreateFlags::RESERVED_18_EXT.0, "RESERVED_18_EXT"), - (ImageCreateFlags::RESERVED_394_EXT.0, "RESERVED_394_EXT"), + ( + ImageCreateFlags::TYPE_2D_VIEW_COMPATIBLE_EXT.0, + "TYPE_2D_VIEW_COMPATIBLE_EXT", + ), ( ImageCreateFlags::FRAGMENT_DENSITY_MAP_OFFSET_QCOM.0, "FRAGMENT_DENSITY_MAP_OFFSET_QCOM", @@ -2891,6 +2908,7 @@ impl fmt::Debug for PipelineCreateFlags { PipelineCreateFlags::RAY_TRACING_ALLOW_MOTION_NV.0, "RAY_TRACING_ALLOW_MOTION_NV", ), + (PipelineCreateFlags::RESERVED_24_NV.0, "RESERVED_24_NV"), ( PipelineCreateFlags::VIEW_INDEX_FROM_DEVICE_INDEX.0, "VIEW_INDEX_FROM_DEVICE_INDEX", @@ -3192,6 +3210,7 @@ impl fmt::Debug for PipelineStageFlags2 { "INVOCATION_MASK_HUAWEI", ), (PipelineStageFlags2::RESERVED_387_KHR.0, "RESERVED_387_KHR"), + (PipelineStageFlags2::RESERVED_30_NV.0, "RESERVED_30_NV"), (PipelineStageFlags2::RESERVED_29_NV.0, "RESERVED_29_NV"), ]; debug_flags(f, KNOWN, self.0) @@ -3526,6 +3545,7 @@ impl fmt::Debug for RenderingFlags { ), (RenderingFlags::SUSPENDING.0, "SUSPENDING"), (RenderingFlags::RESUMING.0, "RESUMING"), + (RenderingFlags::RESERVED_3_EXT.0, "RESERVED_3_EXT"), ]; debug_flags(f, KNOWN, self.0) } @@ -4929,6 +4949,9 @@ impl fmt::Debug for StructureType { Self::PHYSICAL_DEVICE_MULTI_DRAW_PROPERTIES_EXT => { Some("PHYSICAL_DEVICE_MULTI_DRAW_PROPERTIES_EXT") } + Self::PHYSICAL_DEVICE_IMAGE_2D_VIEW_OF_3D_FEATURES_EXT => { + Some("PHYSICAL_DEVICE_IMAGE_2D_VIEW_OF_3D_FEATURES_EXT") + } Self::PHYSICAL_DEVICE_BORDER_COLOR_SWIZZLE_FEATURES_EXT => { Some("PHYSICAL_DEVICE_BORDER_COLOR_SWIZZLE_FEATURES_EXT") } @@ -5372,6 +5395,7 @@ impl fmt::Debug for SubpassDescriptionFlags { SubpassDescriptionFlags::RASTERIZATION_ORDER_ATTACHMENT_STENCIL_ACCESS_ARM.0, "RASTERIZATION_ORDER_ATTACHMENT_STENCIL_ACCESS_ARM", ), + (SubpassDescriptionFlags::RESERVED_7_EXT.0, "RESERVED_7_EXT"), ]; debug_flags(f, KNOWN, self.0) } @@ -5928,6 +5952,10 @@ impl fmt::Debug for VideoEncodeH265CapabilityFlagsEXT { VideoEncodeH265CapabilityFlagsEXT::TRANSFORM_SKIP_ENABLED.0, "TRANSFORM_SKIP_ENABLED", ), + ( + VideoEncodeH265CapabilityFlagsEXT::TRANSFORM_SKIP_DISABLED.0, + "TRANSFORM_SKIP_DISABLED", + ), ( VideoEncodeH265CapabilityFlagsEXT::PPS_SLICE_CHROMA_QP_OFFSETS_PRESENT.0, "PPS_SLICE_CHROMA_QP_OFFSETS_PRESENT", @@ -5984,6 +6012,10 @@ impl fmt::Debug for VideoEncodeH265CapabilityFlagsEXT { VideoEncodeH265CapabilityFlagsEXT::DIFFERENT_SLICE_TYPE.0, "DIFFERENT_SLICE_TYPE", ), + ( + VideoEncodeH265CapabilityFlagsEXT::B_FRAME_IN_L1_LIST.0, + "B_FRAME_IN_L1_LIST", + ), ]; debug_flags(f, KNOWN, self.0) } diff --git a/ash/src/vk/definitions.rs b/ash/src/vk/definitions.rs index 8b2dbdc..59b3a8f 100644 --- a/ash/src/vk/definitions.rs +++ b/ash/src/vk/definitions.rs @@ -56,7 +56,7 @@ pub const API_VERSION_1_1: u32 = make_api_version(0, 1, 1, 0); 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); -pub const HEADER_VERSION: u32 = 210u32; +pub const HEADER_VERSION: u32 = 211u32; #[doc = ""] pub const HEADER_VERSION_COMPLETE: u32 = make_api_version(0, 1, 3, HEADER_VERSION); #[doc = ""] @@ -47404,6 +47404,71 @@ impl<'a> AccelerationStructureBuildSizesInfoKHRBuilder<'a> { #[repr(C)] #[cfg_attr(feature = "debug", derive(Debug))] #[derive(Copy, Clone)] +#[doc = ""] +pub struct PhysicalDeviceImage2DViewOf3DFeaturesEXT { + pub s_type: StructureType, + pub p_next: *mut c_void, + pub image2_d_view_of3_d: Bool32, + pub sampler2_d_view_of3_d: Bool32, +} +impl ::std::default::Default for PhysicalDeviceImage2DViewOf3DFeaturesEXT { + #[inline] + fn default() -> Self { + Self { + s_type: StructureType::PHYSICAL_DEVICE_IMAGE_2D_VIEW_OF_3D_FEATURES_EXT, + p_next: ::std::ptr::null_mut(), + image2_d_view_of3_d: Bool32::default(), + sampler2_d_view_of3_d: Bool32::default(), + } + } +} +impl PhysicalDeviceImage2DViewOf3DFeaturesEXT { + pub fn builder<'a>() -> PhysicalDeviceImage2DViewOf3DFeaturesEXTBuilder<'a> { + PhysicalDeviceImage2DViewOf3DFeaturesEXTBuilder { + inner: Self::default(), + marker: ::std::marker::PhantomData, + } + } +} +#[repr(transparent)] +pub struct PhysicalDeviceImage2DViewOf3DFeaturesEXTBuilder<'a> { + inner: PhysicalDeviceImage2DViewOf3DFeaturesEXT, + marker: ::std::marker::PhantomData<&'a ()>, +} +unsafe impl ExtendsPhysicalDeviceFeatures2 for PhysicalDeviceImage2DViewOf3DFeaturesEXTBuilder<'_> {} +unsafe impl ExtendsPhysicalDeviceFeatures2 for PhysicalDeviceImage2DViewOf3DFeaturesEXT {} +unsafe impl ExtendsDeviceCreateInfo for PhysicalDeviceImage2DViewOf3DFeaturesEXTBuilder<'_> {} +unsafe impl ExtendsDeviceCreateInfo for PhysicalDeviceImage2DViewOf3DFeaturesEXT {} +impl<'a> ::std::ops::Deref for PhysicalDeviceImage2DViewOf3DFeaturesEXTBuilder<'a> { + type Target = PhysicalDeviceImage2DViewOf3DFeaturesEXT; + fn deref(&self) -> &Self::Target { + &self.inner + } +} +impl<'a> ::std::ops::DerefMut for PhysicalDeviceImage2DViewOf3DFeaturesEXTBuilder<'a> { + fn deref_mut(&mut self) -> &mut Self::Target { + &mut self.inner + } +} +impl<'a> PhysicalDeviceImage2DViewOf3DFeaturesEXTBuilder<'a> { + pub fn image2_d_view_of3_d(mut self, image2_d_view_of3_d: bool) -> Self { + self.inner.image2_d_view_of3_d = image2_d_view_of3_d.into(); + self + } + pub fn sampler2_d_view_of3_d(mut self, sampler2_d_view_of3_d: bool) -> Self { + self.inner.sampler2_d_view_of3_d = sampler2_d_view_of3_d.into(); + self + } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] + pub fn build(self) -> PhysicalDeviceImage2DViewOf3DFeaturesEXT { + self.inner + } +} +#[repr(C)] +#[cfg_attr(feature = "debug", derive(Debug))] +#[derive(Copy, Clone)] #[doc = ""] pub struct PhysicalDeviceMutableDescriptorTypeFeaturesVALVE { pub s_type: StructureType, @@ -49906,8 +49971,6 @@ pub struct VideoDecodeInfoKHR { pub s_type: StructureType, pub p_next: *const c_void, pub flags: VideoDecodeFlagsKHR, - pub coded_offset: Offset2D, - pub coded_extent: Extent2D, pub src_buffer: Buffer, pub src_buffer_offset: DeviceSize, pub src_buffer_range: DeviceSize, @@ -49923,8 +49986,6 @@ impl ::std::default::Default for VideoDecodeInfoKHR { s_type: StructureType::VIDEO_DECODE_INFO_KHR, p_next: ::std::ptr::null(), flags: VideoDecodeFlagsKHR::default(), - coded_offset: Offset2D::default(), - coded_extent: Extent2D::default(), src_buffer: Buffer::default(), src_buffer_offset: DeviceSize::default(), src_buffer_range: DeviceSize::default(), @@ -49965,14 +50026,6 @@ impl<'a> VideoDecodeInfoKHRBuilder<'a> { self.inner.flags = flags; self } - pub fn coded_offset(mut self, coded_offset: Offset2D) -> Self { - self.inner.coded_offset = coded_offset; - self - } - pub fn coded_extent(mut self, coded_extent: Extent2D) -> Self { - self.inner.coded_extent = coded_extent; - self - } pub fn src_buffer(mut self, src_buffer: Buffer) -> Self { self.inner.src_buffer = src_buffer; self @@ -50099,7 +50152,7 @@ impl<'a> VideoDecodeH264ProfileEXTBuilder<'a> { pub struct VideoDecodeH264CapabilitiesEXT { pub s_type: StructureType, pub p_next: *mut c_void, - pub max_level: u32, + pub max_level: StdVideoH264Level, pub field_offset_granularity: Offset2D, } impl ::std::default::Default for VideoDecodeH264CapabilitiesEXT { @@ -50108,7 +50161,7 @@ impl ::std::default::Default for VideoDecodeH264CapabilitiesEXT { Self { s_type: StructureType::VIDEO_DECODE_H264_CAPABILITIES_EXT, p_next: ::std::ptr::null_mut(), - max_level: u32::default(), + max_level: StdVideoH264Level::default(), field_offset_granularity: Offset2D::default(), } } @@ -50140,7 +50193,7 @@ impl<'a> ::std::ops::DerefMut for VideoDecodeH264CapabilitiesEXTBuilder<'a> { } } impl<'a> VideoDecodeH264CapabilitiesEXTBuilder<'a> { - pub fn max_level(mut self, max_level: u32) -> Self { + pub fn max_level(mut self, max_level: StdVideoH264Level) -> Self { self.inner.max_level = max_level; self } @@ -50580,7 +50633,7 @@ impl<'a> VideoDecodeH265ProfileEXTBuilder<'a> { pub struct VideoDecodeH265CapabilitiesEXT { pub s_type: StructureType, pub p_next: *mut c_void, - pub max_level: u32, + pub max_level: StdVideoH265Level, } impl ::std::default::Default for VideoDecodeH265CapabilitiesEXT { #[inline] @@ -50588,7 +50641,7 @@ impl ::std::default::Default for VideoDecodeH265CapabilitiesEXT { Self { s_type: StructureType::VIDEO_DECODE_H265_CAPABILITIES_EXT, p_next: ::std::ptr::null_mut(), - max_level: u32::default(), + max_level: StdVideoH265Level::default(), } } } @@ -50619,7 +50672,7 @@ impl<'a> ::std::ops::DerefMut for VideoDecodeH265CapabilitiesEXTBuilder<'a> { } } impl<'a> VideoDecodeH265CapabilitiesEXTBuilder<'a> { - pub fn max_level(mut self, max_level: u32) -> Self { + pub fn max_level(mut self, max_level: StdVideoH265Level) -> Self { self.inner.max_level = max_level; self } @@ -51413,7 +51466,6 @@ pub struct VideoEncodeInfoKHR { pub p_next: *const c_void, pub flags: VideoEncodeFlagsKHR, pub quality_level: u32, - pub coded_extent: Extent2D, pub dst_bitstream_buffer: Buffer, pub dst_bitstream_buffer_offset: DeviceSize, pub dst_bitstream_buffer_max_range: DeviceSize, @@ -51431,7 +51483,6 @@ impl ::std::default::Default for VideoEncodeInfoKHR { p_next: ::std::ptr::null(), flags: VideoEncodeFlagsKHR::default(), quality_level: u32::default(), - coded_extent: Extent2D::default(), dst_bitstream_buffer: Buffer::default(), dst_bitstream_buffer_offset: DeviceSize::default(), dst_bitstream_buffer_max_range: DeviceSize::default(), @@ -51477,10 +51528,6 @@ impl<'a> VideoEncodeInfoKHRBuilder<'a> { self.inner.quality_level = quality_level; self } - pub fn coded_extent(mut self, coded_extent: Extent2D) -> Self { - self.inner.coded_extent = coded_extent; - self - } pub fn dst_bitstream_buffer(mut self, dst_bitstream_buffer: Buffer) -> Self { self.inner.dst_bitstream_buffer = dst_bitstream_buffer; self @@ -51744,7 +51791,7 @@ impl<'a> VideoEncodeRateControlLayerInfoKHRBuilder<'a> { #[doc = ""] pub struct VideoEncodeCapabilitiesKHR { pub s_type: StructureType, - pub p_next: *const c_void, + pub p_next: *mut c_void, pub flags: VideoEncodeCapabilityFlagsKHR, pub rate_control_modes: VideoEncodeRateControlModeFlagsKHR, pub rate_control_layer_count: u8, @@ -51756,7 +51803,7 @@ impl ::std::default::Default for VideoEncodeCapabilitiesKHR { fn default() -> Self { Self { s_type: StructureType::VIDEO_ENCODE_CAPABILITIES_KHR, - p_next: ::std::ptr::null(), + p_next: ::std::ptr::null_mut(), flags: VideoEncodeCapabilityFlagsKHR::default(), rate_control_modes: VideoEncodeRateControlModeFlagsKHR::default(), rate_control_layer_count: u8::default(), @@ -51826,7 +51873,7 @@ impl<'a> VideoEncodeCapabilitiesKHRBuilder<'a> { #[doc = r" chain will look like `A -> D -> B -> C`."] pub fn push_next(mut self, next: &'a mut T) -> Self { unsafe { - let next_ptr = <*const T>::cast(next); + let next_ptr = <*mut T>::cast(next); let last_next = ptr_chain_iter(next).last().unwrap(); (*last_next).p_next = self.inner.p_next as _; self.inner.p_next = next_ptr; @@ -51846,7 +51893,7 @@ impl<'a> VideoEncodeCapabilitiesKHRBuilder<'a> { #[doc = ""] pub struct VideoEncodeH264CapabilitiesEXT { pub s_type: StructureType, - pub p_next: *const c_void, + pub p_next: *mut c_void, pub flags: VideoEncodeH264CapabilityFlagsEXT, pub input_mode_flags: VideoEncodeH264InputModeFlagsEXT, pub output_mode_flags: VideoEncodeH264OutputModeFlagsEXT, @@ -51864,7 +51911,7 @@ impl ::std::default::Default for VideoEncodeH264CapabilitiesEXT { fn default() -> Self { Self { s_type: StructureType::VIDEO_ENCODE_H264_CAPABILITIES_EXT, - p_next: ::std::ptr::null(), + p_next: ::std::ptr::null_mut(), flags: VideoEncodeH264CapabilityFlagsEXT::default(), input_mode_flags: VideoEncodeH264InputModeFlagsEXT::default(), output_mode_flags: VideoEncodeH264OutputModeFlagsEXT::default(), @@ -52863,7 +52910,7 @@ impl<'a> VideoEncodeH264RateControlLayerInfoEXTBuilder<'a> { #[doc = ""] pub struct VideoEncodeH265CapabilitiesEXT { pub s_type: StructureType, - pub p_next: *const c_void, + pub p_next: *mut c_void, pub flags: VideoEncodeH265CapabilityFlagsEXT, pub input_mode_flags: VideoEncodeH265InputModeFlagsEXT, pub output_mode_flags: VideoEncodeH265OutputModeFlagsEXT, @@ -52890,7 +52937,7 @@ impl ::std::default::Default for VideoEncodeH265CapabilitiesEXT { fn default() -> Self { Self { s_type: StructureType::VIDEO_ENCODE_H265_CAPABILITIES_EXT, - p_next: ::std::ptr::null(), + p_next: ::std::ptr::null_mut(), flags: VideoEncodeH265CapabilityFlagsEXT::default(), input_mode_flags: VideoEncodeH265InputModeFlagsEXT::default(), output_mode_flags: VideoEncodeH265OutputModeFlagsEXT::default(), diff --git a/ash/src/vk/extensions.rs b/ash/src/vk/extensions.rs index cf5a08c..7e91920 100644 --- a/ash/src/vk/extensions.rs +++ b/ash/src/vk/extensions.rs @@ -2214,7 +2214,7 @@ impl KhrVideoDecodeQueueFn { pub const fn name() -> &'static ::std::ffi::CStr { unsafe { ::std::ffi::CStr::from_bytes_with_nul_unchecked(b"VK_KHR_video_decode_queue\0") } } - pub const SPEC_VERSION: u32 = 3u32; + pub const SPEC_VERSION: u32 = 4u32; } #[allow(non_camel_case_types)] pub type PFN_vkCmdDecodeVideoKHR = unsafe extern "system" fn( @@ -3083,7 +3083,7 @@ impl ExtVideoEncodeH265Fn { pub const fn name() -> &'static ::std::ffi::CStr { unsafe { ::std::ffi::CStr::from_bytes_with_nul_unchecked(b"VK_EXT_video_encode_h265\0") } } - pub const SPEC_VERSION: u32 = 6u32; + pub const SPEC_VERSION: u32 = 7u32; } #[derive(Clone)] pub struct ExtVideoEncodeH265Fn {} @@ -3119,7 +3119,7 @@ impl ExtVideoDecodeH264Fn { pub const fn name() -> &'static ::std::ffi::CStr { unsafe { ::std::ffi::CStr::from_bytes_with_nul_unchecked(b"VK_EXT_video_decode_h264\0") } } - pub const SPEC_VERSION: u32 = 4u32; + pub const SPEC_VERSION: u32 = 5u32; } #[derive(Clone)] pub struct ExtVideoDecodeH264Fn {} @@ -11488,7 +11488,7 @@ impl ExtVideoDecodeH265Fn { pub const fn name() -> &'static ::std::ffi::CStr { unsafe { ::std::ffi::CStr::from_bytes_with_nul_unchecked(b"VK_EXT_video_decode_h265\0") } } - pub const SPEC_VERSION: u32 = 2u32; + pub const SPEC_VERSION: u32 = 3u32; } #[derive(Clone)] pub struct ExtVideoDecodeH265Fn {} @@ -16283,7 +16283,7 @@ impl KhrVideoEncodeQueueFn { pub const fn name() -> &'static ::std::ffi::CStr { unsafe { ::std::ffi::CStr::from_bytes_with_nul_unchecked(b"VK_KHR_video_encode_queue\0") } } - pub const SPEC_VERSION: u32 = 4u32; + pub const SPEC_VERSION: u32 = 5u32; } #[allow(non_camel_case_types)] pub type PFN_vkCmdEncodeVideoKHR = unsafe extern "system" fn( @@ -19720,17 +19720,17 @@ impl StructureType { pub const PHYSICAL_DEVICE_MULTI_DRAW_FEATURES_EXT: Self = Self(1_000_392_000); pub const PHYSICAL_DEVICE_MULTI_DRAW_PROPERTIES_EXT: Self = Self(1_000_392_001); } -impl ExtExtension394Fn { +impl ExtImage2dViewOf3dFn { pub const fn name() -> &'static ::std::ffi::CStr { - unsafe { ::std::ffi::CStr::from_bytes_with_nul_unchecked(b"VK_EXT_extension_394\0") } + unsafe { ::std::ffi::CStr::from_bytes_with_nul_unchecked(b"VK_EXT_image_2d_view_of_3d\0") } } - pub const SPEC_VERSION: u32 = 0u32; + pub const SPEC_VERSION: u32 = 1u32; } #[derive(Clone)] -pub struct ExtExtension394Fn {} -unsafe impl Send for ExtExtension394Fn {} -unsafe impl Sync for ExtExtension394Fn {} -impl ExtExtension394Fn { +pub struct ExtImage2dViewOf3dFn {} +unsafe impl Send for ExtImage2dViewOf3dFn {} +unsafe impl Sync for ExtImage2dViewOf3dFn {} +impl ExtImage2dViewOf3dFn { pub fn load(mut _f: F) -> Self where F: FnMut(&::std::ffi::CStr) -> *const c_void, @@ -19738,9 +19738,14 @@ impl ExtExtension394Fn { Self {} } } -#[doc = "Generated from 'VK_EXT_extension_394'"] +#[doc = "Generated from 'VK_EXT_image_2d_view_of_3d'"] impl ImageCreateFlags { - pub const RESERVED_394_EXT: Self = Self(0b10_0000_0000_0000_0000); + #[doc = "Image is created with a layout where individual slices are capable of being used as 2D images"] + pub const TYPE_2D_VIEW_COMPATIBLE_EXT: Self = Self(0b10_0000_0000_0000_0000); +} +#[doc = "Generated from 'VK_EXT_image_2d_view_of_3d'"] +impl StructureType { + pub const PHYSICAL_DEVICE_IMAGE_2D_VIEW_OF_3D_FEATURES_EXT: Self = Self(1_000_393_000); } impl KhrPortabilityEnumerationFn { pub const fn name() -> &'static ::std::ffi::CStr { @@ -19802,6 +19807,36 @@ impl NvExtension397Fn { Self {} } } +#[doc = "Generated from 'VK_NV_extension_397'"] +impl AccessFlags2 { + pub const RESERVED_44_NV: Self = + Self(0b1_0000_0000_0000_0000_0000_0000_0000_0000_0000_0000_0000); + pub const RESERVED_45_NV: Self = + Self(0b10_0000_0000_0000_0000_0000_0000_0000_0000_0000_0000_0000); +} +#[doc = "Generated from 'VK_NV_extension_397'"] +impl BufferUsageFlags { + pub const RESERVED_23_NV: Self = Self(0b1000_0000_0000_0000_0000_0000); + pub const RESERVED_24_NV: Self = Self(0b1_0000_0000_0000_0000_0000_0000); +} +#[doc = "Generated from 'VK_NV_extension_397'"] +impl BuildAccelerationStructureFlagsKHR { + pub const RESERVED_6_NV: Self = Self(0b100_0000); + pub const RESERVED_7_NV: Self = Self(0b1000_0000); +} +#[doc = "Generated from 'VK_NV_extension_397'"] +impl GeometryInstanceFlagsKHR { + pub const RESERVED_4_NV: Self = Self(0b1_0000); + pub const RESERVED_5_NV: Self = Self(0b10_0000); +} +#[doc = "Generated from 'VK_NV_extension_397'"] +impl PipelineCreateFlags { + pub const RESERVED_24_NV: Self = Self(0b1_0000_0000_0000_0000_0000_0000); +} +#[doc = "Generated from 'VK_NV_extension_397'"] +impl PipelineStageFlags2 { + pub const RESERVED_30_NV: Self = Self(0b100_0000_0000_0000_0000_0000_0000_0000); +} impl NvExtension398Fn { pub const fn name() -> &'static ::std::ffi::CStr { unsafe { ::std::ffi::CStr::from_bytes_with_nul_unchecked(b"VK_NV_extension_398\0") } @@ -21275,6 +21310,24 @@ impl ExtExtension463Fn { Self {} } } +impl ExtExtension464Fn { + pub const fn name() -> &'static ::std::ffi::CStr { + unsafe { ::std::ffi::CStr::from_bytes_with_nul_unchecked(b"VK_EXT_extension_464\0") } + } + pub const SPEC_VERSION: u32 = 0u32; +} +#[derive(Clone)] +pub struct ExtExtension464Fn {} +unsafe impl Send for ExtExtension464Fn {} +unsafe impl Sync for ExtExtension464Fn {} +impl ExtExtension464Fn { + pub fn load(mut _f: F) -> Self + where + F: FnMut(&::std::ffi::CStr) -> *const c_void, + { + Self {} + } +} impl NvExtension465Fn { pub const fn name() -> &'static ::std::ffi::CStr { unsafe { ::std::ffi::CStr::from_bytes_with_nul_unchecked(b"VK_NV_extension_465\0") } @@ -21313,17 +21366,61 @@ impl PipelineStageFlags2 { impl QueueFlags { pub const RESERVED_8_NV: Self = Self(0b1_0000_0000); } -impl ExtExtension464Fn { +impl ExtExtension466Fn { pub const fn name() -> &'static ::std::ffi::CStr { - unsafe { ::std::ffi::CStr::from_bytes_with_nul_unchecked(b"VK_EXT_extension_464\0") } + unsafe { ::std::ffi::CStr::from_bytes_with_nul_unchecked(b"VK_EXT_extension_466\0") } } pub const SPEC_VERSION: u32 = 0u32; } #[derive(Clone)] -pub struct ExtExtension464Fn {} -unsafe impl Send for ExtExtension464Fn {} -unsafe impl Sync for ExtExtension464Fn {} -impl ExtExtension464Fn { +pub struct ExtExtension466Fn {} +unsafe impl Send for ExtExtension466Fn {} +unsafe impl Sync for ExtExtension466Fn {} +impl ExtExtension466Fn { + pub fn load(mut _f: F) -> Self + where + F: FnMut(&::std::ffi::CStr) -> *const c_void, + { + Self {} + } +} +#[doc = "Generated from 'VK_EXT_extension_466'"] +impl RenderingFlags { + pub const RESERVED_3_EXT: Self = Self(0b1000); +} +#[doc = "Generated from 'VK_EXT_extension_466'"] +impl SubpassDescriptionFlags { + pub const RESERVED_7_EXT: Self = Self(0b1000_0000); +} +impl ExtExtension467Fn { + pub const fn name() -> &'static ::std::ffi::CStr { + unsafe { ::std::ffi::CStr::from_bytes_with_nul_unchecked(b"VK_EXT_extension_467\0") } + } + pub const SPEC_VERSION: u32 = 0u32; +} +#[derive(Clone)] +pub struct ExtExtension467Fn {} +unsafe impl Send for ExtExtension467Fn {} +unsafe impl Sync for ExtExtension467Fn {} +impl ExtExtension467Fn { + pub fn load(mut _f: F) -> Self + where + F: FnMut(&::std::ffi::CStr) -> *const c_void, + { + Self {} + } +} +impl ExtExtension468Fn { + pub const fn name() -> &'static ::std::ffi::CStr { + unsafe { ::std::ffi::CStr::from_bytes_with_nul_unchecked(b"VK_EXT_extension_468\0") } + } + pub const SPEC_VERSION: u32 = 0u32; +} +#[derive(Clone)] +pub struct ExtExtension468Fn {} +unsafe impl Send for ExtExtension468Fn {} +unsafe impl Sync for ExtExtension468Fn {} +impl ExtExtension468Fn { pub fn load(mut _f: F) -> Self where F: FnMut(&::std::ffi::CStr) -> *const c_void, diff --git a/generator/Vulkan-Headers b/generator/Vulkan-Headers index 0c59287..23842a3 160000 --- a/generator/Vulkan-Headers +++ b/generator/Vulkan-Headers @@ -1 +1 @@ -Subproject commit 0c5928795a66e93f65e5e68a36d8daa79a209dc2 +Subproject commit 23842a31df9c9c2b3bc7c6c2bb56044bc5e51c05