Skip to content

Commit

Permalink
Update Vulkan-Headers to 1.2.197
Browse files Browse the repository at this point in the history
  • Loading branch information
MarijnS95 committed Nov 2, 2021
1 parent cc69841 commit 7219d5c
Show file tree
Hide file tree
Showing 8 changed files with 1,272 additions and 327 deletions.
1 change: 1 addition & 0 deletions ash/src/vk/aliases.rs
Original file line number Diff line number Diff line change
Expand Up @@ -164,3 +164,4 @@ pub type DeviceMemoryOpaqueCaptureAddressInfoKHR = DeviceMemoryOpaqueCaptureAddr
pub type AabbPositionsNV = AabbPositionsKHR;
pub type TransformMatrixNV = TransformMatrixKHR;
pub type AccelerationStructureInstanceNV = AccelerationStructureInstanceKHR;
pub type AttachmentSampleCountInfoNV = AttachmentSampleCountInfoAMD;
26 changes: 10 additions & 16 deletions ash/src/vk/bitflags.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1284,22 +1284,6 @@ impl FormatFeatureFlags2KHR {
}
#[repr(transparent)]
#[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)]
#[doc = "<https://www.khronos.org/registry/vulkan/specs/1.2-extensions/man/html/VkVideoEncodeH265CapabilityFlagBitsEXT.html>"]
pub struct VideoEncodeH265CapabilityFlagsEXT(pub(crate) Flags);
vk_bitflags_wrapped!(VideoEncodeH265CapabilityFlagsEXT, 0b1_1111_1111, Flags);
impl VideoEncodeH265CapabilityFlagsEXT {
pub const WEIGHTED_BI_PRED_IMPLICIT: Self = Self(0b1);
pub const TRANSFORM_8X8: Self = Self(0b10);
pub const CHROMA_QP_OFFSET: Self = Self(0b100);
pub const SECOND_CHROMA_QP_OFFSET: Self = Self(0b1000);
pub const DEBLOCKING_FILTER_DISABLED: Self = Self(0b1_0000);
pub const DEBLOCKING_FILTER_ENABLED: Self = Self(0b10_0000);
pub const DEBLOCKING_FILTER_PARTIAL: Self = Self(0b100_0000);
pub const MULTIPLE_SLICE_PER_FRAME: Self = Self(0b1000_0000);
pub const EVENLY_DISTRIBUTED_SLICE_SIZE: Self = Self(0b1_0000_0000);
}
#[repr(transparent)]
#[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)]
#[doc = "<https://www.khronos.org/registry/vulkan/specs/1.2-extensions/man/html/VkVideoEncodeH265InputModeFlagBitsEXT.html>"]
pub struct VideoEncodeH265InputModeFlagsEXT(pub(crate) Flags);
vk_bitflags_wrapped!(VideoEncodeH265InputModeFlagsEXT, 0b111, Flags);
Expand Down Expand Up @@ -1329,3 +1313,13 @@ impl VideoEncodeH265CtbSizeFlagsEXT {
pub const TYPE_32: Self = Self(0b100);
pub const TYPE_64: Self = Self(0b1000);
}
#[repr(transparent)]
#[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)]
#[doc = "<https://www.khronos.org/registry/vulkan/specs/1.2-extensions/man/html/VkRenderingFlagBitsKHR.html>"]
pub struct RenderingFlagsKHR(pub(crate) Flags);
vk_bitflags_wrapped!(RenderingFlagsKHR, 0b111, Flags);
impl RenderingFlagsKHR {
pub const CONTENTS_SECONDARY_COMMAND_BUFFERS: Self = Self(0b1);
pub const SUSPENDING: Self = Self(0b10);
pub const RESUMING: Self = Self(0b100);
}
83 changes: 42 additions & 41 deletions ash/src/vk/const_debugs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ impl fmt::Debug for AttachmentStoreOp {
let name = match *self {
Self::STORE => Some("STORE"),
Self::DONT_CARE => Some("DONT_CARE"),
Self::NONE_EXT => Some("NONE_EXT"),
Self::NONE_KHR => Some("NONE_KHR"),
_ => None,
};
if let Some(x) = name {
Expand Down Expand Up @@ -2857,8 +2857,14 @@ impl fmt::Debug for PipelineCreateFlags {
"ALLOW_DERIVATIVES",
),
(PipelineCreateFlags::DERIVATIVE.0, "DERIVATIVE"),
(PipelineCreateFlags::RESERVED_21_AMD.0, "RESERVED_21_AMD"),
(PipelineCreateFlags::RESERVED_22_AMD.0, "RESERVED_22_AMD"),
(
PipelineCreateFlags::RASTERIZATION_STATE_FRAGMENT_SHADING_RATE_ATTACHMENT_KHR.0,
"RASTERIZATION_STATE_FRAGMENT_SHADING_RATE_ATTACHMENT_KHR",
),
(
PipelineCreateFlags::RASTERIZATION_STATE_FRAGMENT_DENSITY_MAP_ATTACHMENT_EXT.0,
"RASTERIZATION_STATE_FRAGMENT_DENSITY_MAP_ATTACHMENT_EXT",
),
(
PipelineCreateFlags::RAY_TRACING_NO_NULL_ANY_HIT_SHADERS_KHR.0,
"RAY_TRACING_NO_NULL_ANY_HIT_SHADERS_KHR",
Expand Down Expand Up @@ -3529,6 +3535,19 @@ impl fmt::Debug for RenderPassCreateFlags {
debug_flags(f, KNOWN, self.0)
}
}
impl fmt::Debug for RenderingFlagsKHR {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
const KNOWN: &[(Flags, &str)] = &[
(
RenderingFlagsKHR::CONTENTS_SECONDARY_COMMAND_BUFFERS.0,
"CONTENTS_SECONDARY_COMMAND_BUFFERS",
),
(RenderingFlagsKHR::SUSPENDING.0, "SUSPENDING"),
(RenderingFlagsKHR::RESUMING.0, "RESUMING"),
];
debug_flags(f, KNOWN, self.0)
}
}
impl fmt::Debug for ResolveModeFlags {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
const KNOWN: &[(Flags, &str)] = &[
Expand Down Expand Up @@ -4162,6 +4181,25 @@ impl fmt::Debug for StructureType {
Self::TEXTURE_LOD_GATHER_FORMAT_PROPERTIES_AMD => {
Some("TEXTURE_LOD_GATHER_FORMAT_PROPERTIES_AMD")
}
Self::RENDERING_INFO_KHR => Some("RENDERING_INFO_KHR"),
Self::RENDERING_ATTACHMENT_INFO_KHR => Some("RENDERING_ATTACHMENT_INFO_KHR"),
Self::PIPELINE_RENDERING_CREATE_INFO_KHR => Some("PIPELINE_RENDERING_CREATE_INFO_KHR"),
Self::PHYSICAL_DEVICE_DYNAMIC_RENDERING_FEATURES_KHR => {
Some("PHYSICAL_DEVICE_DYNAMIC_RENDERING_FEATURES_KHR")
}
Self::COMMAND_BUFFER_INHERITANCE_RENDERING_INFO_KHR => {
Some("COMMAND_BUFFER_INHERITANCE_RENDERING_INFO_KHR")
}
Self::RENDERING_FRAGMENT_SHADING_RATE_ATTACHMENT_INFO_KHR => {
Some("RENDERING_FRAGMENT_SHADING_RATE_ATTACHMENT_INFO_KHR")
}
Self::RENDERING_FRAGMENT_DENSITY_MAP_ATTACHMENT_INFO_EXT => {
Some("RENDERING_FRAGMENT_DENSITY_MAP_ATTACHMENT_INFO_EXT")
}
Self::ATTACHMENT_SAMPLE_COUNT_INFO_AMD => Some("ATTACHMENT_SAMPLE_COUNT_INFO_AMD"),
Self::MULTIVIEW_PER_VIEW_ATTRIBUTES_INFO_NVX => {
Some("MULTIVIEW_PER_VIEW_ATTRIBUTES_INFO_NVX")
}
Self::STREAM_DESCRIPTOR_SURFACE_CREATE_INFO_GGP => {
Some("STREAM_DESCRIPTOR_SURFACE_CREATE_INFO_GGP")
}
Expand Down Expand Up @@ -5779,44 +5817,7 @@ impl fmt::Debug for VideoEncodeH264OutputModeFlagsEXT {
}
impl fmt::Debug for VideoEncodeH265CapabilityFlagsEXT {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
const KNOWN: &[(Flags, &str)] = &[
(
VideoEncodeH265CapabilityFlagsEXT::WEIGHTED_BI_PRED_IMPLICIT.0,
"WEIGHTED_BI_PRED_IMPLICIT",
),
(
VideoEncodeH265CapabilityFlagsEXT::TRANSFORM_8X8.0,
"TRANSFORM_8X8",
),
(
VideoEncodeH265CapabilityFlagsEXT::CHROMA_QP_OFFSET.0,
"CHROMA_QP_OFFSET",
),
(
VideoEncodeH265CapabilityFlagsEXT::SECOND_CHROMA_QP_OFFSET.0,
"SECOND_CHROMA_QP_OFFSET",
),
(
VideoEncodeH265CapabilityFlagsEXT::DEBLOCKING_FILTER_DISABLED.0,
"DEBLOCKING_FILTER_DISABLED",
),
(
VideoEncodeH265CapabilityFlagsEXT::DEBLOCKING_FILTER_ENABLED.0,
"DEBLOCKING_FILTER_ENABLED",
),
(
VideoEncodeH265CapabilityFlagsEXT::DEBLOCKING_FILTER_PARTIAL.0,
"DEBLOCKING_FILTER_PARTIAL",
),
(
VideoEncodeH265CapabilityFlagsEXT::MULTIPLE_SLICE_PER_FRAME.0,
"MULTIPLE_SLICE_PER_FRAME",
),
(
VideoEncodeH265CapabilityFlagsEXT::EVENLY_DISTRIBUTED_SLICE_SIZE.0,
"EVENLY_DISTRIBUTED_SLICE_SIZE",
),
];
const KNOWN: &[(Flags, &str)] = &[];
debug_flags(f, KNOWN, self.0)
}
}
Expand Down
Loading

0 comments on commit 7219d5c

Please sign in to comment.