Skip to content

Commit

Permalink
Update Vulkan-Headers to 1.3.263
Browse files Browse the repository at this point in the history
  • Loading branch information
MarijnS95 committed Sep 3, 2023
1 parent d3afa9b commit 63706fa
Show file tree
Hide file tree
Showing 8 changed files with 155 additions and 36 deletions.
2 changes: 1 addition & 1 deletion Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

- Added `Handle::is_null()` to allow checking if a handle is a `NULL` value (#694)
- Allow building `Entry`/`Instance`/`Device` from handle+fns (see their `from_parts_1_x()` associated functions) (#748)
- Update Vulkan-Headers to 1.3.262 (#760, #763, #783)
- Update Vulkan-Headers to 1.3.263 (#760, #763, #783)
- Added `VK_NV_memory_decompression` device extension (#761)
- Added `VK_GOOGLE_display_timing` device extension (#765)
- Added `VK_ANDROID_external_memory_android_hardware_buffer` device extension (#769)
Expand Down
2 changes: 1 addition & 1 deletion ash/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "ash"
version = "0.37.0+1.3.262"
version = "0.37.0+1.3.263"
authors = [
"Maik Klein <[email protected]>",
"Benjamin Saunders <[email protected]>",
Expand Down
5 changes: 5 additions & 0 deletions ash/src/vk/bitflags.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1303,6 +1303,7 @@ pub struct VideoEncodeCapabilityFlagsKHR(pub(crate) Flags);
vk_bitflags_wrapped!(VideoEncodeCapabilityFlagsKHR, Flags);
impl VideoEncodeCapabilityFlagsKHR {
pub const PRECEDING_EXTERNALLY_ENCODED_BYTES: Self = Self(0b1);
pub const INSUFFICIENTSTREAM_BUFFER_RANGE_DETECTION: Self = Self(0b10);
}
#[repr(transparent)]
#[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)]
Expand Down Expand Up @@ -1365,6 +1366,8 @@ impl VideoEncodeH264StdFlagsEXT {
pub const DEBLOCKING_FILTER_DISABLED: Self = Self(0b1000_0000_0000_0000);
pub const DEBLOCKING_FILTER_ENABLED: Self = Self(0b1_0000_0000_0000_0000);
pub const DEBLOCKING_FILTER_PARTIAL: Self = Self(0b10_0000_0000_0000_0000);
pub const SLICE_QP_DELTA: Self = Self(0b1000_0000_0000_0000_0000);
pub const DIFFERENT_SLICE_QP_DELTA: Self = Self(0b1_0000_0000_0000_0000_0000);
}
#[repr(transparent)]
#[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)]
Expand Down Expand Up @@ -1530,6 +1533,8 @@ impl VideoEncodeH265StdFlagsEXT {
pub const DEBLOCKING_FILTER_OVERRIDE_ENABLED_FLAG_SET: Self = Self(0b1_0000_0000_0000_0000);
pub const DEPENDENT_SLICE_SEGMENTS_ENABLED_FLAG_SET: Self = Self(0b10_0000_0000_0000_0000);
pub const DEPENDENT_SLICE_SEGMENT_FLAG_SET: Self = Self(0b100_0000_0000_0000_0000);
pub const SLICE_QP_DELTA: Self = Self(0b1000_0000_0000_0000_0000);
pub const DIFFERENT_SLICE_QP_DELTA: Self = Self(0b1_0000_0000_0000_0000_0000);
}
#[repr(transparent)]
#[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)]
Expand Down
42 changes: 38 additions & 4 deletions ash/src/vk/const_debugs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1286,6 +1286,14 @@ impl fmt::Debug for DescriptorPoolCreateFlags {
"FREE_DESCRIPTOR_SET",
),
(DescriptorPoolCreateFlags::HOST_ONLY_EXT.0, "HOST_ONLY_EXT"),
(
DescriptorPoolCreateFlags::ALLOW_OVERALLOCATION_SETS_NV.0,
"ALLOW_OVERALLOCATION_SETS_NV",
),
(
DescriptorPoolCreateFlags::ALLOW_OVERALLOCATION_POOLS_NV.0,
"ALLOW_OVERALLOCATION_POOLS_NV",
),
(
DescriptorPoolCreateFlags::UPDATE_AFTER_BIND.0,
"UPDATE_AFTER_BIND",
Expand Down Expand Up @@ -4272,6 +4280,7 @@ impl fmt::Debug for QueryResultStatusKHR {
Self::ERROR => Some("ERROR"),
Self::NOT_READY => Some("NOT_READY"),
Self::COMPLETE => Some("COMPLETE"),
Self::INSUFFICIENTSTREAM_BUFFER_RANGE => Some("INSUFFICIENTSTREAM_BUFFER_RANGE"),
_ => None,
};
if let Some(x) = name {
Expand Down Expand Up @@ -6346,6 +6355,9 @@ impl fmt::Debug for StructureType {
Self::PHYSICAL_DEVICE_EXTERNAL_MEMORY_SCREEN_BUFFER_FEATURES_QNX => {
Some("PHYSICAL_DEVICE_EXTERNAL_MEMORY_SCREEN_BUFFER_FEATURES_QNX")
}
Self::PHYSICAL_DEVICE_DESCRIPTOR_POOL_OVERALLOCATION_FEATURES_NV => {
Some("PHYSICAL_DEVICE_DESCRIPTOR_POOL_OVERALLOCATION_FEATURES_NV")
}
Self::PHYSICAL_DEVICE_SUBGROUP_PROPERTIES => {
Some("PHYSICAL_DEVICE_SUBGROUP_PROPERTIES")
}
Expand Down Expand Up @@ -7161,10 +7173,16 @@ impl fmt::Debug for VideoDecodeUsageFlagsKHR {
}
impl fmt::Debug for VideoEncodeCapabilityFlagsKHR {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
const KNOWN: &[(Flags, &str)] = &[(
VideoEncodeCapabilityFlagsKHR::PRECEDING_EXTERNALLY_ENCODED_BYTES.0,
"PRECEDING_EXTERNALLY_ENCODED_BYTES",
)];
const KNOWN: &[(Flags, &str)] = &[
(
VideoEncodeCapabilityFlagsKHR::PRECEDING_EXTERNALLY_ENCODED_BYTES.0,
"PRECEDING_EXTERNALLY_ENCODED_BYTES",
),
(
VideoEncodeCapabilityFlagsKHR::INSUFFICIENTSTREAM_BUFFER_RANGE_DETECTION.0,
"INSUFFICIENTSTREAM_BUFFER_RANGE_DETECTION",
),
];
debug_flags(f, KNOWN, self.0)
}
}
Expand Down Expand Up @@ -7349,6 +7367,14 @@ impl fmt::Debug for VideoEncodeH264StdFlagsEXT {
VideoEncodeH264StdFlagsEXT::DEBLOCKING_FILTER_PARTIAL.0,
"DEBLOCKING_FILTER_PARTIAL",
),
(
VideoEncodeH264StdFlagsEXT::SLICE_QP_DELTA.0,
"SLICE_QP_DELTA",
),
(
VideoEncodeH264StdFlagsEXT::DIFFERENT_SLICE_QP_DELTA.0,
"DIFFERENT_SLICE_QP_DELTA",
),
];
debug_flags(f, KNOWN, self.0)
}
Expand Down Expand Up @@ -7516,6 +7542,14 @@ impl fmt::Debug for VideoEncodeH265StdFlagsEXT {
VideoEncodeH265StdFlagsEXT::DEPENDENT_SLICE_SEGMENT_FLAG_SET.0,
"DEPENDENT_SLICE_SEGMENT_FLAG_SET",
),
(
VideoEncodeH265StdFlagsEXT::SLICE_QP_DELTA.0,
"SLICE_QP_DELTA",
),
(
VideoEncodeH265StdFlagsEXT::DIFFERENT_SLICE_QP_DELTA.0,
"DIFFERENT_SLICE_QP_DELTA",
),
];
debug_flags(f, KNOWN, self.0)
}
Expand Down
39 changes: 38 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 = 262;
pub const HEADER_VERSION: u32 = 263;
#[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 @@ -51045,3 +51045,40 @@ impl<'a> SamplerBlockMatchWindowCreateInfoQCOM<'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/VkPhysicalDeviceDescriptorPoolOverallocationFeaturesNV.html>"]
pub struct PhysicalDeviceDescriptorPoolOverallocationFeaturesNV<'a> {
pub s_type: StructureType,
pub p_next: *mut c_void,
pub descriptor_pool_overallocation: Bool32,
pub _marker: PhantomData<&'a ()>,
}
impl ::std::default::Default for PhysicalDeviceDescriptorPoolOverallocationFeaturesNV<'_> {
#[inline]
fn default() -> Self {
Self {
s_type: Self::STRUCTURE_TYPE,
p_next: ::std::ptr::null_mut(),
descriptor_pool_overallocation: Bool32::default(),
_marker: PhantomData,
}
}
}
unsafe impl<'a> TaggedStructure for PhysicalDeviceDescriptorPoolOverallocationFeaturesNV<'a> {
const STRUCTURE_TYPE: StructureType =
StructureType::PHYSICAL_DEVICE_DESCRIPTOR_POOL_OVERALLOCATION_FEATURES_NV;
}
unsafe impl ExtendsPhysicalDeviceFeatures2
for PhysicalDeviceDescriptorPoolOverallocationFeaturesNV<'_>
{
}
unsafe impl ExtendsDeviceCreateInfo for PhysicalDeviceDescriptorPoolOverallocationFeaturesNV<'_> {}
impl<'a> PhysicalDeviceDescriptorPoolOverallocationFeaturesNV<'a> {
#[inline]
pub fn descriptor_pool_overallocation(mut self, descriptor_pool_overallocation: bool) -> Self {
self.descriptor_pool_overallocation = descriptor_pool_overallocation.into();
self
}
}
28 changes: 25 additions & 3 deletions ash/src/vk/extensions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2752,7 +2752,7 @@ pub struct AmdShaderBallotFn;
impl ExtVideoEncodeH264Fn {
pub const NAME: &'static ::std::ffi::CStr =
unsafe { ::std::ffi::CStr::from_bytes_with_nul_unchecked(b"VK_EXT_video_encode_h264\0") };
pub const SPEC_VERSION: u32 = 11u32;
pub const SPEC_VERSION: u32 = 12u32;
}
#[derive(Clone)]
pub struct ExtVideoEncodeH264Fn;
Expand Down Expand Up @@ -2780,7 +2780,7 @@ impl VideoCodecOperationFlagsKHR {
impl ExtVideoEncodeH265Fn {
pub const 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 = 11u32;
pub const SPEC_VERSION: u32 = 12u32;
}
#[derive(Clone)]
pub struct ExtVideoEncodeH265Fn;
Expand Down Expand Up @@ -14036,7 +14036,7 @@ impl StructureType {
impl KhrVideoEncodeQueueFn {
pub const 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 = 9u32;
pub const SPEC_VERSION: u32 = 10u32;
}
#[allow(non_camel_case_types)]
pub type PFN_vkGetPhysicalDeviceVideoEncodeQualityLevelPropertiesKHR =
Expand Down Expand Up @@ -14174,6 +14174,10 @@ impl PipelineStageFlags2 {
pub const VIDEO_ENCODE_KHR: Self = Self(0b1000_0000_0000_0000_0000_0000_0000);
}
#[doc = "Generated from 'VK_KHR_video_encode_queue'"]
impl QueryResultStatusKHR {
pub const INSUFFICIENTSTREAM_BUFFER_RANGE: Self = Self(-1_000_299_000);
}
#[doc = "Generated from 'VK_KHR_video_encode_queue'"]
impl QueryType {
pub const VIDEO_ENCODE_FEEDBACK_KHR: Self = Self(1_000_299_000);
}
Expand Down Expand Up @@ -21637,3 +21641,21 @@ impl StructureType {
pub const PHYSICAL_DEVICE_EXTERNAL_MEMORY_SCREEN_BUFFER_FEATURES_QNX: Self =
Self(1_000_529_004);
}
impl NvDescriptorPoolOverallocationFn {
pub const NAME: &'static ::std::ffi::CStr = unsafe {
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"VK_NV_descriptor_pool_overallocation\0")
};
pub const SPEC_VERSION: u32 = 1u32;
}
#[derive(Clone)]
pub struct NvDescriptorPoolOverallocationFn;
#[doc = "Generated from 'VK_NV_descriptor_pool_overallocation'"]
impl DescriptorPoolCreateFlags {
pub const ALLOW_OVERALLOCATION_SETS_NV: Self = Self(0b1000);
pub const ALLOW_OVERALLOCATION_POOLS_NV: Self = Self(0b1_0000);
}
#[doc = "Generated from 'VK_NV_descriptor_pool_overallocation'"]
impl StructureType {
pub const PHYSICAL_DEVICE_DESCRIPTOR_POOL_OVERALLOCATION_FEATURES_NV: Self =
Self(1_000_546_000);
}
Loading

0 comments on commit 63706fa

Please sign in to comment.