Update Vulkan-Headers to 1.2.198 (#477)
* Update Vulkan-Headers to 1.2.192 * Update Vulkan-Headers to 1.2.193 * Update Vulkan-Headers to 1.2.194 * Update Vulkan-Headers to 1.2.195 Includes the new VK_EXT_rgba10x6_formats, VK_KHR_format_feature_flags2 and VK_KHR_maintenance4 extensions. * Update Vulkan-Headers to 1.2.196 Includes Vulkan-Headers fixup commit with the missing h265 encode header. * Update Vulkan-Headers to 1.2.197 * Update Vulkan-Headers to 1.2.198
This commit is contained in:
parent
527b542c69
commit
3947675aaa
|
@ -164,3 +164,4 @@ pub type DeviceMemoryOpaqueCaptureAddressInfoKHR = DeviceMemoryOpaqueCaptureAddr
|
|||
pub type AabbPositionsNV = AabbPositionsKHR;
|
||||
pub type TransformMatrixNV = TransformMatrixKHR;
|
||||
pub type AccelerationStructureInstanceNV = AccelerationStructureInstanceKHR;
|
||||
pub type AttachmentSampleCountInfoNV = AttachmentSampleCountInfoAMD;
|
||||
|
|
|
@ -1221,3 +1221,105 @@ impl VideoEncodeH264CreateFlagsEXT {
|
|||
pub const DEFAULT: Self = Self(0);
|
||||
pub const RESERVED_0: Self = Self(0b1);
|
||||
}
|
||||
#[repr(transparent)]
|
||||
#[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)]
|
||||
#[doc = "<https://www.khronos.org/registry/vulkan/specs/1.2-extensions/man/html/VkImageFormatConstraintsFlagBitsFUCHSIA.html>"]
|
||||
pub struct ImageFormatConstraintsFlagsFUCHSIA(pub(crate) Flags);
|
||||
vk_bitflags_wrapped!(ImageFormatConstraintsFlagsFUCHSIA, 0b0, Flags);
|
||||
impl ImageFormatConstraintsFlagsFUCHSIA {}
|
||||
#[repr(transparent)]
|
||||
#[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)]
|
||||
#[doc = "<https://www.khronos.org/registry/vulkan/specs/1.2-extensions/man/html/VkImageConstraintsInfoFlagBitsFUCHSIA.html>"]
|
||||
pub struct ImageConstraintsInfoFlagsFUCHSIA(pub(crate) Flags);
|
||||
vk_bitflags_wrapped!(ImageConstraintsInfoFlagsFUCHSIA, 0b1_1111, Flags);
|
||||
impl ImageConstraintsInfoFlagsFUCHSIA {
|
||||
pub const CPU_READ_RARELY: Self = Self(0b1);
|
||||
pub const CPU_READ_OFTEN: Self = Self(0b10);
|
||||
pub const CPU_WRITE_RARELY: Self = Self(0b100);
|
||||
pub const CPU_WRITE_OFTEN: Self = Self(0b1000);
|
||||
pub const PROTECTED_OPTIONAL: Self = Self(0b1_0000);
|
||||
}
|
||||
#[repr(transparent)]
|
||||
#[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)]
|
||||
#[doc = "<https://www.khronos.org/registry/vulkan/specs/1.2-extensions/man/html/VkFormatFeatureFlagBits2KHR.html>"]
|
||||
pub struct FormatFeatureFlags2KHR(pub(crate) Flags64);
|
||||
vk_bitflags_wrapped!(
|
||||
FormatFeatureFlags2KHR,
|
||||
0b11_1000_0000_1111_1111_1111_1111_1111_1111,
|
||||
Flags64
|
||||
);
|
||||
impl FormatFeatureFlags2KHR {
|
||||
pub const SAMPLED_IMAGE: Self = Self(0b1);
|
||||
pub const STORAGE_IMAGE: Self = Self(0b10);
|
||||
pub const STORAGE_IMAGE_ATOMIC: Self = Self(0b100);
|
||||
pub const UNIFORM_TEXEL_BUFFER: Self = Self(0b1000);
|
||||
pub const STORAGE_TEXEL_BUFFER: Self = Self(0b1_0000);
|
||||
pub const STORAGE_TEXEL_BUFFER_ATOMIC: Self = Self(0b10_0000);
|
||||
pub const VERTEX_BUFFER: Self = Self(0b100_0000);
|
||||
pub const COLOR_ATTACHMENT: Self = Self(0b1000_0000);
|
||||
pub const COLOR_ATTACHMENT_BLEND: Self = Self(0b1_0000_0000);
|
||||
pub const DEPTH_STENCIL_ATTACHMENT: Self = Self(0b10_0000_0000);
|
||||
pub const BLIT_SRC: Self = Self(0b100_0000_0000);
|
||||
pub const BLIT_DST: Self = Self(0b1000_0000_0000);
|
||||
pub const SAMPLED_IMAGE_FILTER_LINEAR: Self = Self(0b1_0000_0000_0000);
|
||||
pub const SAMPLED_IMAGE_FILTER_CUBIC_EXT: Self = Self(0b10_0000_0000_0000);
|
||||
pub const TRANSFER_SRC: Self = Self(0b100_0000_0000_0000);
|
||||
pub const TRANSFER_DST: Self = Self(0b1000_0000_0000_0000);
|
||||
pub const SAMPLED_IMAGE_FILTER_MINMAX: Self = Self(0b1_0000_0000_0000_0000);
|
||||
pub const MIDPOINT_CHROMA_SAMPLES: Self = Self(0b10_0000_0000_0000_0000);
|
||||
pub const SAMPLED_IMAGE_YCBCR_CONVERSION_LINEAR_FILTER: Self = Self(0b100_0000_0000_0000_0000);
|
||||
pub const SAMPLED_IMAGE_YCBCR_CONVERSION_SEPARATE_RECONSTRUCTION_FILTER: Self =
|
||||
Self(0b1000_0000_0000_0000_0000);
|
||||
pub const SAMPLED_IMAGE_YCBCR_CONVERSION_CHROMA_RECONSTRUCTION_EXPLICIT: Self =
|
||||
Self(0b1_0000_0000_0000_0000_0000);
|
||||
pub const SAMPLED_IMAGE_YCBCR_CONVERSION_CHROMA_RECONSTRUCTION_EXPLICIT_FORCEABLE: Self =
|
||||
Self(0b10_0000_0000_0000_0000_0000);
|
||||
pub const DISJOINT: Self = Self(0b100_0000_0000_0000_0000_0000);
|
||||
pub const COSITED_CHROMA_SAMPLES: Self = Self(0b1000_0000_0000_0000_0000_0000);
|
||||
pub const STORAGE_READ_WITHOUT_FORMAT: Self = Self(0b1000_0000_0000_0000_0000_0000_0000_0000);
|
||||
pub const STORAGE_WRITE_WITHOUT_FORMAT: Self =
|
||||
Self(0b1_0000_0000_0000_0000_0000_0000_0000_0000);
|
||||
pub const SAMPLED_IMAGE_DEPTH_COMPARISON: Self =
|
||||
Self(0b10_0000_0000_0000_0000_0000_0000_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);
|
||||
impl VideoEncodeH265InputModeFlagsEXT {
|
||||
pub const FRAME: Self = Self(0b1);
|
||||
pub const SLICE: Self = Self(0b10);
|
||||
pub const NON_VCL: Self = Self(0b100);
|
||||
}
|
||||
#[repr(transparent)]
|
||||
#[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)]
|
||||
#[doc = "<https://www.khronos.org/registry/vulkan/specs/1.2-extensions/man/html/VkVideoEncodeH265OutputModeFlagBitsEXT.html>"]
|
||||
pub struct VideoEncodeH265OutputModeFlagsEXT(pub(crate) Flags);
|
||||
vk_bitflags_wrapped!(VideoEncodeH265OutputModeFlagsEXT, 0b111, Flags);
|
||||
impl VideoEncodeH265OutputModeFlagsEXT {
|
||||
pub const FRAME: Self = Self(0b1);
|
||||
pub const SLICE: Self = Self(0b10);
|
||||
pub const NON_VCL: Self = Self(0b100);
|
||||
}
|
||||
#[repr(transparent)]
|
||||
#[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)]
|
||||
#[doc = "<https://www.khronos.org/registry/vulkan/specs/1.2-extensions/man/html/VkVideoEncodeH265CtbSizeFlagBitsEXT.html>"]
|
||||
pub struct VideoEncodeH265CtbSizeFlagsEXT(pub(crate) Flags);
|
||||
vk_bitflags_wrapped!(VideoEncodeH265CtbSizeFlagsEXT, 0b1111, Flags);
|
||||
impl VideoEncodeH265CtbSizeFlagsEXT {
|
||||
pub const TYPE_8: Self = Self(0b1);
|
||||
pub const TYPE_16: Self = Self(0b10);
|
||||
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);
|
||||
}
|
||||
|
|
|
@ -325,6 +325,7 @@ impl fmt::Debug for AccessFlags2KHR {
|
|||
AccessFlags2KHR::INVOCATION_MASK_READ_HUAWEI.0,
|
||||
"INVOCATION_MASK_READ_HUAWEI",
|
||||
),
|
||||
(AccessFlags2KHR::RESERVED_387.0, "RESERVED_387"),
|
||||
];
|
||||
debug_flags(f, KNOWN, self.0)
|
||||
}
|
||||
|
@ -368,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 {
|
||||
|
@ -513,6 +514,7 @@ impl fmt::Debug for BufferCreateFlags {
|
|||
(BufferCreateFlags::SPARSE_BINDING.0, "SPARSE_BINDING"),
|
||||
(BufferCreateFlags::SPARSE_RESIDENCY.0, "SPARSE_RESIDENCY"),
|
||||
(BufferCreateFlags::SPARSE_ALIASED.0, "SPARSE_ALIASED"),
|
||||
(BufferCreateFlags::RESERVED_5_AMD.0, "RESERVED_5_AMD"),
|
||||
(BufferCreateFlags::PROTECTED.0, "PROTECTED"),
|
||||
(
|
||||
BufferCreateFlags::DEVICE_ADDRESS_CAPTURE_REPLAY.0,
|
||||
|
@ -581,6 +583,8 @@ impl fmt::Debug for BufferUsageFlags {
|
|||
BufferUsageFlags::VIDEO_ENCODE_SRC_KHR.0,
|
||||
"VIDEO_ENCODE_SRC_KHR",
|
||||
),
|
||||
(BufferUsageFlags::RESERVED_21_AMD.0, "RESERVED_21_AMD"),
|
||||
(BufferUsageFlags::RESERVED_22_AMD.0, "RESERVED_22_AMD"),
|
||||
(
|
||||
BufferUsageFlags::SHADER_DEVICE_ADDRESS.0,
|
||||
"SHADER_DEVICE_ADDRESS",
|
||||
|
@ -983,6 +987,7 @@ impl fmt::Debug for DebugReportObjectTypeEXT {
|
|||
Self::CU_FUNCTION_NVX => Some("CU_FUNCTION_NVX"),
|
||||
Self::ACCELERATION_STRUCTURE_KHR => Some("ACCELERATION_STRUCTURE_KHR"),
|
||||
Self::ACCELERATION_STRUCTURE_NV => Some("ACCELERATION_STRUCTURE_NV"),
|
||||
Self::BUFFER_COLLECTION_FUCHSIA => Some("BUFFER_COLLECTION_FUCHSIA"),
|
||||
_ => None,
|
||||
};
|
||||
if let Some(x) = name {
|
||||
|
@ -1088,6 +1093,10 @@ impl fmt::Debug for DescriptorSetLayoutCreateFlags {
|
|||
DescriptorSetLayoutCreateFlags::PUSH_DESCRIPTOR_KHR.0,
|
||||
"PUSH_DESCRIPTOR_KHR",
|
||||
),
|
||||
(
|
||||
DescriptorSetLayoutCreateFlags::RESERVED_4_AMD.0,
|
||||
"RESERVED_4_AMD",
|
||||
),
|
||||
(
|
||||
DescriptorSetLayoutCreateFlags::RESERVED_3_AMD.0,
|
||||
"RESERVED_3_AMD",
|
||||
|
@ -1326,6 +1335,9 @@ impl fmt::Debug for DriverId {
|
|||
Self::COREAVI_PROPRIETARY => Some("COREAVI_PROPRIETARY"),
|
||||
Self::JUICE_PROPRIETARY => Some("JUICE_PROPRIETARY"),
|
||||
Self::VERISILICON_PROPRIETARY => Some("VERISILICON_PROPRIETARY"),
|
||||
Self::MESA_TURNIP => Some("MESA_TURNIP"),
|
||||
Self::MESA_V3DV => Some("MESA_V3DV"),
|
||||
Self::MESA_PANVK => Some("MESA_PANVK"),
|
||||
_ => None,
|
||||
};
|
||||
if let Some(x) = name {
|
||||
|
@ -1922,6 +1934,12 @@ impl fmt::Debug for FormatFeatureFlags {
|
|||
debug_flags(f, KNOWN, self.0)
|
||||
}
|
||||
}
|
||||
impl fmt::Debug for FormatFeatureFlags2KHR {
|
||||
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
||||
const KNOWN : & [(Flags64 , & str)] = & [(FormatFeatureFlags2KHR :: SAMPLED_IMAGE . 0 , "SAMPLED_IMAGE") , (FormatFeatureFlags2KHR :: STORAGE_IMAGE . 0 , "STORAGE_IMAGE") , (FormatFeatureFlags2KHR :: STORAGE_IMAGE_ATOMIC . 0 , "STORAGE_IMAGE_ATOMIC") , (FormatFeatureFlags2KHR :: UNIFORM_TEXEL_BUFFER . 0 , "UNIFORM_TEXEL_BUFFER") , (FormatFeatureFlags2KHR :: STORAGE_TEXEL_BUFFER . 0 , "STORAGE_TEXEL_BUFFER") , (FormatFeatureFlags2KHR :: STORAGE_TEXEL_BUFFER_ATOMIC . 0 , "STORAGE_TEXEL_BUFFER_ATOMIC") , (FormatFeatureFlags2KHR :: VERTEX_BUFFER . 0 , "VERTEX_BUFFER") , (FormatFeatureFlags2KHR :: COLOR_ATTACHMENT . 0 , "COLOR_ATTACHMENT") , (FormatFeatureFlags2KHR :: COLOR_ATTACHMENT_BLEND . 0 , "COLOR_ATTACHMENT_BLEND") , (FormatFeatureFlags2KHR :: DEPTH_STENCIL_ATTACHMENT . 0 , "DEPTH_STENCIL_ATTACHMENT") , (FormatFeatureFlags2KHR :: BLIT_SRC . 0 , "BLIT_SRC") , (FormatFeatureFlags2KHR :: BLIT_DST . 0 , "BLIT_DST") , (FormatFeatureFlags2KHR :: SAMPLED_IMAGE_FILTER_LINEAR . 0 , "SAMPLED_IMAGE_FILTER_LINEAR") , (FormatFeatureFlags2KHR :: SAMPLED_IMAGE_FILTER_CUBIC_EXT . 0 , "SAMPLED_IMAGE_FILTER_CUBIC_EXT") , (FormatFeatureFlags2KHR :: TRANSFER_SRC . 0 , "TRANSFER_SRC") , (FormatFeatureFlags2KHR :: TRANSFER_DST . 0 , "TRANSFER_DST") , (FormatFeatureFlags2KHR :: SAMPLED_IMAGE_FILTER_MINMAX . 0 , "SAMPLED_IMAGE_FILTER_MINMAX") , (FormatFeatureFlags2KHR :: MIDPOINT_CHROMA_SAMPLES . 0 , "MIDPOINT_CHROMA_SAMPLES") , (FormatFeatureFlags2KHR :: SAMPLED_IMAGE_YCBCR_CONVERSION_LINEAR_FILTER . 0 , "SAMPLED_IMAGE_YCBCR_CONVERSION_LINEAR_FILTER") , (FormatFeatureFlags2KHR :: SAMPLED_IMAGE_YCBCR_CONVERSION_SEPARATE_RECONSTRUCTION_FILTER . 0 , "SAMPLED_IMAGE_YCBCR_CONVERSION_SEPARATE_RECONSTRUCTION_FILTER") , (FormatFeatureFlags2KHR :: SAMPLED_IMAGE_YCBCR_CONVERSION_CHROMA_RECONSTRUCTION_EXPLICIT . 0 , "SAMPLED_IMAGE_YCBCR_CONVERSION_CHROMA_RECONSTRUCTION_EXPLICIT") , (FormatFeatureFlags2KHR :: SAMPLED_IMAGE_YCBCR_CONVERSION_CHROMA_RECONSTRUCTION_EXPLICIT_FORCEABLE . 0 , "SAMPLED_IMAGE_YCBCR_CONVERSION_CHROMA_RECONSTRUCTION_EXPLICIT_FORCEABLE") , (FormatFeatureFlags2KHR :: DISJOINT . 0 , "DISJOINT") , (FormatFeatureFlags2KHR :: COSITED_CHROMA_SAMPLES . 0 , "COSITED_CHROMA_SAMPLES") , (FormatFeatureFlags2KHR :: STORAGE_READ_WITHOUT_FORMAT . 0 , "STORAGE_READ_WITHOUT_FORMAT") , (FormatFeatureFlags2KHR :: STORAGE_WRITE_WITHOUT_FORMAT . 0 , "STORAGE_WRITE_WITHOUT_FORMAT") , (FormatFeatureFlags2KHR :: SAMPLED_IMAGE_DEPTH_COMPARISON . 0 , "SAMPLED_IMAGE_DEPTH_COMPARISON") , (FormatFeatureFlags2KHR :: VIDEO_DECODE_OUTPUT . 0 , "VIDEO_DECODE_OUTPUT") , (FormatFeatureFlags2KHR :: VIDEO_DECODE_DPB . 0 , "VIDEO_DECODE_DPB") , (FormatFeatureFlags2KHR :: ACCELERATION_STRUCTURE_VERTEX_BUFFER . 0 , "ACCELERATION_STRUCTURE_VERTEX_BUFFER") , (FormatFeatureFlags2KHR :: FRAGMENT_DENSITY_MAP_EXT . 0 , "FRAGMENT_DENSITY_MAP_EXT") , (FormatFeatureFlags2KHR :: FRAGMENT_SHADING_RATE_ATTACHMENT . 0 , "FRAGMENT_SHADING_RATE_ATTACHMENT") , (FormatFeatureFlags2KHR :: VIDEO_ENCODE_INPUT . 0 , "VIDEO_ENCODE_INPUT") , (FormatFeatureFlags2KHR :: VIDEO_ENCODE_DPB . 0 , "VIDEO_ENCODE_DPB")] ;
|
||||
debug_flags(f, KNOWN, self.0)
|
||||
}
|
||||
}
|
||||
impl fmt::Debug for FragmentShadingRateCombinerOpKHR {
|
||||
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
||||
let name = match *self {
|
||||
|
@ -2090,6 +2108,33 @@ impl fmt::Debug for ImageAspectFlags {
|
|||
debug_flags(f, KNOWN, self.0)
|
||||
}
|
||||
}
|
||||
impl fmt::Debug for ImageConstraintsInfoFlagsFUCHSIA {
|
||||
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
||||
const KNOWN: &[(Flags, &str)] = &[
|
||||
(
|
||||
ImageConstraintsInfoFlagsFUCHSIA::CPU_READ_RARELY.0,
|
||||
"CPU_READ_RARELY",
|
||||
),
|
||||
(
|
||||
ImageConstraintsInfoFlagsFUCHSIA::CPU_READ_OFTEN.0,
|
||||
"CPU_READ_OFTEN",
|
||||
),
|
||||
(
|
||||
ImageConstraintsInfoFlagsFUCHSIA::CPU_WRITE_RARELY.0,
|
||||
"CPU_WRITE_RARELY",
|
||||
),
|
||||
(
|
||||
ImageConstraintsInfoFlagsFUCHSIA::CPU_WRITE_OFTEN.0,
|
||||
"CPU_WRITE_OFTEN",
|
||||
),
|
||||
(
|
||||
ImageConstraintsInfoFlagsFUCHSIA::PROTECTED_OPTIONAL.0,
|
||||
"PROTECTED_OPTIONAL",
|
||||
),
|
||||
];
|
||||
debug_flags(f, KNOWN, self.0)
|
||||
}
|
||||
}
|
||||
impl fmt::Debug for ImageCreateFlags {
|
||||
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
||||
const KNOWN: &[(Flags, &str)] = &[
|
||||
|
@ -2104,6 +2149,9 @@ impl fmt::Debug for ImageCreateFlags {
|
|||
"SAMPLE_LOCATIONS_COMPATIBLE_DEPTH_EXT",
|
||||
),
|
||||
(ImageCreateFlags::SUBSAMPLED_EXT.0, "SUBSAMPLED_EXT"),
|
||||
(ImageCreateFlags::RESERVED_16_AMD.0, "RESERVED_16_AMD"),
|
||||
(ImageCreateFlags::RESERVED_394_EXT.0, "RESERVED_394_EXT"),
|
||||
(ImageCreateFlags::RESERVED_426_QCOM.0, "RESERVED_426_QCOM"),
|
||||
(ImageCreateFlags::ALIAS.0, "ALIAS"),
|
||||
(
|
||||
ImageCreateFlags::SPLIT_INSTANCE_BIND_REGIONS.0,
|
||||
|
@ -2124,6 +2172,12 @@ impl fmt::Debug for ImageCreateFlags {
|
|||
debug_flags(f, KNOWN, self.0)
|
||||
}
|
||||
}
|
||||
impl fmt::Debug for ImageFormatConstraintsFlagsFUCHSIA {
|
||||
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
||||
const KNOWN: &[(Flags, &str)] = &[];
|
||||
debug_flags(f, KNOWN, self.0)
|
||||
}
|
||||
}
|
||||
impl fmt::Debug for ImageLayout {
|
||||
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
||||
let name = match *self {
|
||||
|
@ -2548,6 +2602,7 @@ impl fmt::Debug for ObjectType {
|
|||
Self::DEFERRED_OPERATION_KHR => Some("DEFERRED_OPERATION_KHR"),
|
||||
Self::INDIRECT_COMMANDS_LAYOUT_NV => Some("INDIRECT_COMMANDS_LAYOUT_NV"),
|
||||
Self::PRIVATE_DATA_SLOT_EXT => Some("PRIVATE_DATA_SLOT_EXT"),
|
||||
Self::BUFFER_COLLECTION_FUCHSIA => Some("BUFFER_COLLECTION_FUCHSIA"),
|
||||
Self::SAMPLER_YCBCR_CONVERSION => Some("SAMPLER_YCBCR_CONVERSION"),
|
||||
Self::DESCRIPTOR_UPDATE_TEMPLATE => Some("DESCRIPTOR_UPDATE_TEMPLATE"),
|
||||
_ => None,
|
||||
|
@ -2802,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",
|
||||
|
@ -2927,10 +2988,16 @@ impl fmt::Debug for PipelineInputAssemblyStateCreateFlags {
|
|||
}
|
||||
impl fmt::Debug for PipelineLayoutCreateFlags {
|
||||
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
||||
const KNOWN: &[(Flags, &str)] = &[(
|
||||
PipelineLayoutCreateFlags::RESERVED_0_AMD.0,
|
||||
"RESERVED_0_AMD",
|
||||
)];
|
||||
const KNOWN: &[(Flags, &str)] = &[
|
||||
(
|
||||
PipelineLayoutCreateFlags::RESERVED_0_AMD.0,
|
||||
"RESERVED_0_AMD",
|
||||
),
|
||||
(
|
||||
PipelineLayoutCreateFlags::RESERVED_1_AMD.0,
|
||||
"RESERVED_1_AMD",
|
||||
),
|
||||
];
|
||||
debug_flags(f, KNOWN, self.0)
|
||||
}
|
||||
}
|
||||
|
@ -3146,6 +3213,7 @@ impl fmt::Debug for PipelineStageFlags2KHR {
|
|||
PipelineStageFlags2KHR::INVOCATION_MASK_HUAWEI.0,
|
||||
"INVOCATION_MASK_HUAWEI",
|
||||
),
|
||||
(PipelineStageFlags2KHR::RESERVED_387.0, "RESERVED_387"),
|
||||
];
|
||||
debug_flags(f, KNOWN, self.0)
|
||||
}
|
||||
|
@ -3467,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)] = &[
|
||||
|
@ -3574,6 +3655,7 @@ impl fmt::Debug for SamplerCreateFlags {
|
|||
SamplerCreateFlags::SUBSAMPLED_COARSE_RECONSTRUCTION_EXT.0,
|
||||
"SUBSAMPLED_COARSE_RECONSTRUCTION_EXT",
|
||||
),
|
||||
(SamplerCreateFlags::RESERVED_3_AMD.0, "RESERVED_3_AMD"),
|
||||
(SamplerCreateFlags::RESERVED_2_EXT.0, "RESERVED_2_EXT"),
|
||||
];
|
||||
debug_flags(f, KNOWN, self.0)
|
||||
|
@ -4056,6 +4138,30 @@ impl fmt::Debug for StructureType {
|
|||
Some("VIDEO_ENCODE_H264_EMIT_PICTURE_PARAMETERS_EXT")
|
||||
}
|
||||
Self::VIDEO_ENCODE_H264_PROFILE_EXT => Some("VIDEO_ENCODE_H264_PROFILE_EXT"),
|
||||
Self::VIDEO_ENCODE_H265_CAPABILITIES_EXT => Some("VIDEO_ENCODE_H265_CAPABILITIES_EXT"),
|
||||
Self::VIDEO_ENCODE_H265_SESSION_CREATE_INFO_EXT => {
|
||||
Some("VIDEO_ENCODE_H265_SESSION_CREATE_INFO_EXT")
|
||||
}
|
||||
Self::VIDEO_ENCODE_H265_SESSION_PARAMETERS_CREATE_INFO_EXT => {
|
||||
Some("VIDEO_ENCODE_H265_SESSION_PARAMETERS_CREATE_INFO_EXT")
|
||||
}
|
||||
Self::VIDEO_ENCODE_H265_SESSION_PARAMETERS_ADD_INFO_EXT => {
|
||||
Some("VIDEO_ENCODE_H265_SESSION_PARAMETERS_ADD_INFO_EXT")
|
||||
}
|
||||
Self::VIDEO_ENCODE_H265_VCL_FRAME_INFO_EXT => {
|
||||
Some("VIDEO_ENCODE_H265_VCL_FRAME_INFO_EXT")
|
||||
}
|
||||
Self::VIDEO_ENCODE_H265_DPB_SLOT_INFO_EXT => {
|
||||
Some("VIDEO_ENCODE_H265_DPB_SLOT_INFO_EXT")
|
||||
}
|
||||
Self::VIDEO_ENCODE_H265_NALU_SLICE_EXT => Some("VIDEO_ENCODE_H265_NALU_SLICE_EXT"),
|
||||
Self::VIDEO_ENCODE_H265_EMIT_PICTURE_PARAMETERS_EXT => {
|
||||
Some("VIDEO_ENCODE_H265_EMIT_PICTURE_PARAMETERS_EXT")
|
||||
}
|
||||
Self::VIDEO_ENCODE_H265_PROFILE_EXT => Some("VIDEO_ENCODE_H265_PROFILE_EXT"),
|
||||
Self::VIDEO_ENCODE_H265_REFERENCE_LISTS_EXT => {
|
||||
Some("VIDEO_ENCODE_H265_REFERENCE_LISTS_EXT")
|
||||
}
|
||||
Self::VIDEO_DECODE_H264_CAPABILITIES_EXT => Some("VIDEO_DECODE_H264_CAPABILITIES_EXT"),
|
||||
Self::VIDEO_DECODE_H264_SESSION_CREATE_INFO_EXT => {
|
||||
Some("VIDEO_DECODE_H264_SESSION_CREATE_INFO_EXT")
|
||||
|
@ -4075,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")
|
||||
}
|
||||
|
@ -4230,6 +4355,9 @@ impl fmt::Debug for StructureType {
|
|||
Some("MEMORY_GET_ANDROID_HARDWARE_BUFFER_INFO_ANDROID")
|
||||
}
|
||||
Self::EXTERNAL_FORMAT_ANDROID => Some("EXTERNAL_FORMAT_ANDROID"),
|
||||
Self::ANDROID_HARDWARE_BUFFER_FORMAT_PROPERTIES_2_ANDROID => {
|
||||
Some("ANDROID_HARDWARE_BUFFER_FORMAT_PROPERTIES_2_ANDROID")
|
||||
}
|
||||
Self::PHYSICAL_DEVICE_INLINE_UNIFORM_BLOCK_FEATURES_EXT => {
|
||||
Some("PHYSICAL_DEVICE_INLINE_UNIFORM_BLOCK_FEATURES_EXT")
|
||||
}
|
||||
|
@ -4352,6 +4480,9 @@ impl fmt::Debug for StructureType {
|
|||
Self::IMAGE_DRM_FORMAT_MODIFIER_PROPERTIES_EXT => {
|
||||
Some("IMAGE_DRM_FORMAT_MODIFIER_PROPERTIES_EXT")
|
||||
}
|
||||
Self::DRM_FORMAT_MODIFIER_PROPERTIES_LIST_2_EXT => {
|
||||
Some("DRM_FORMAT_MODIFIER_PROPERTIES_LIST_2_EXT")
|
||||
}
|
||||
Self::VALIDATION_CACHE_CREATE_INFO_EXT => Some("VALIDATION_CACHE_CREATE_INFO_EXT"),
|
||||
Self::SHADER_MODULE_VALIDATION_CACHE_CREATE_INFO_EXT => {
|
||||
Some("SHADER_MODULE_VALIDATION_CACHE_CREATE_INFO_EXT")
|
||||
|
@ -4821,6 +4952,9 @@ impl fmt::Debug for StructureType {
|
|||
Self::PHYSICAL_DEVICE_4444_FORMATS_FEATURES_EXT => {
|
||||
Some("PHYSICAL_DEVICE_4444_FORMATS_FEATURES_EXT")
|
||||
}
|
||||
Self::PHYSICAL_DEVICE_RGBA10X6_FORMATS_FEATURES_EXT => {
|
||||
Some("PHYSICAL_DEVICE_RGBA10X6_FORMATS_FEATURES_EXT")
|
||||
}
|
||||
Self::DIRECTFB_SURFACE_CREATE_INFO_EXT => Some("DIRECTFB_SURFACE_CREATE_INFO_EXT"),
|
||||
Self::PHYSICAL_DEVICE_MUTABLE_DESCRIPTOR_TYPE_FEATURES_VALVE => {
|
||||
Some("PHYSICAL_DEVICE_MUTABLE_DESCRIPTOR_TYPE_FEATURES_VALVE")
|
||||
|
@ -4841,6 +4975,7 @@ impl fmt::Debug for StructureType {
|
|||
Self::PHYSICAL_DEVICE_PRIMITIVE_TOPOLOGY_LIST_RESTART_FEATURES_EXT => {
|
||||
Some("PHYSICAL_DEVICE_PRIMITIVE_TOPOLOGY_LIST_RESTART_FEATURES_EXT")
|
||||
}
|
||||
Self::FORMAT_PROPERTIES_3_KHR => Some("FORMAT_PROPERTIES_3_KHR"),
|
||||
Self::IMPORT_MEMORY_ZIRCON_HANDLE_INFO_FUCHSIA => {
|
||||
Some("IMPORT_MEMORY_ZIRCON_HANDLE_INFO_FUCHSIA")
|
||||
}
|
||||
|
@ -4856,6 +4991,30 @@ impl fmt::Debug for StructureType {
|
|||
Self::SEMAPHORE_GET_ZIRCON_HANDLE_INFO_FUCHSIA => {
|
||||
Some("SEMAPHORE_GET_ZIRCON_HANDLE_INFO_FUCHSIA")
|
||||
}
|
||||
Self::BUFFER_COLLECTION_CREATE_INFO_FUCHSIA => {
|
||||
Some("BUFFER_COLLECTION_CREATE_INFO_FUCHSIA")
|
||||
}
|
||||
Self::IMPORT_MEMORY_BUFFER_COLLECTION_FUCHSIA => {
|
||||
Some("IMPORT_MEMORY_BUFFER_COLLECTION_FUCHSIA")
|
||||
}
|
||||
Self::BUFFER_COLLECTION_IMAGE_CREATE_INFO_FUCHSIA => {
|
||||
Some("BUFFER_COLLECTION_IMAGE_CREATE_INFO_FUCHSIA")
|
||||
}
|
||||
Self::BUFFER_COLLECTION_PROPERTIES_FUCHSIA => {
|
||||
Some("BUFFER_COLLECTION_PROPERTIES_FUCHSIA")
|
||||
}
|
||||
Self::BUFFER_CONSTRAINTS_INFO_FUCHSIA => Some("BUFFER_CONSTRAINTS_INFO_FUCHSIA"),
|
||||
Self::BUFFER_COLLECTION_BUFFER_CREATE_INFO_FUCHSIA => {
|
||||
Some("BUFFER_COLLECTION_BUFFER_CREATE_INFO_FUCHSIA")
|
||||
}
|
||||
Self::IMAGE_CONSTRAINTS_INFO_FUCHSIA => Some("IMAGE_CONSTRAINTS_INFO_FUCHSIA"),
|
||||
Self::IMAGE_FORMAT_CONSTRAINTS_INFO_FUCHSIA => {
|
||||
Some("IMAGE_FORMAT_CONSTRAINTS_INFO_FUCHSIA")
|
||||
}
|
||||
Self::SYSMEM_COLOR_SPACE_FUCHSIA => Some("SYSMEM_COLOR_SPACE_FUCHSIA"),
|
||||
Self::BUFFER_COLLECTION_CONSTRAINTS_INFO_FUCHSIA => {
|
||||
Some("BUFFER_COLLECTION_CONSTRAINTS_INFO_FUCHSIA")
|
||||
}
|
||||
Self::SUBPASS_SHADING_PIPELINE_CREATE_INFO_HUAWEI => {
|
||||
Some("SUBPASS_SHADING_PIPELINE_CREATE_INFO_HUAWEI")
|
||||
}
|
||||
|
@ -4894,9 +5053,27 @@ impl fmt::Debug for StructureType {
|
|||
Self::PHYSICAL_DEVICE_MULTI_DRAW_PROPERTIES_EXT => {
|
||||
Some("PHYSICAL_DEVICE_MULTI_DRAW_PROPERTIES_EXT")
|
||||
}
|
||||
Self::PHYSICAL_DEVICE_BORDER_COLOR_SWIZZLE_FEATURES_EXT => {
|
||||
Some("PHYSICAL_DEVICE_BORDER_COLOR_SWIZZLE_FEATURES_EXT")
|
||||
}
|
||||
Self::SAMPLER_BORDER_COLOR_COMPONENT_MAPPING_CREATE_INFO_EXT => {
|
||||
Some("SAMPLER_BORDER_COLOR_COMPONENT_MAPPING_CREATE_INFO_EXT")
|
||||
}
|
||||
Self::PHYSICAL_DEVICE_PAGEABLE_DEVICE_LOCAL_MEMORY_FEATURES_EXT => {
|
||||
Some("PHYSICAL_DEVICE_PAGEABLE_DEVICE_LOCAL_MEMORY_FEATURES_EXT")
|
||||
}
|
||||
Self::PHYSICAL_DEVICE_MAINTENANCE_4_FEATURES_KHR => {
|
||||
Some("PHYSICAL_DEVICE_MAINTENANCE_4_FEATURES_KHR")
|
||||
}
|
||||
Self::PHYSICAL_DEVICE_MAINTENANCE_4_PROPERTIES_KHR => {
|
||||
Some("PHYSICAL_DEVICE_MAINTENANCE_4_PROPERTIES_KHR")
|
||||
}
|
||||
Self::DEVICE_BUFFER_MEMORY_REQUIREMENTS_KHR => {
|
||||
Some("DEVICE_BUFFER_MEMORY_REQUIREMENTS_KHR")
|
||||
}
|
||||
Self::DEVICE_IMAGE_MEMORY_REQUIREMENTS_KHR => {
|
||||
Some("DEVICE_IMAGE_MEMORY_REQUIREMENTS_KHR")
|
||||
}
|
||||
Self::PHYSICAL_DEVICE_SUBGROUP_PROPERTIES => {
|
||||
Some("PHYSICAL_DEVICE_SUBGROUP_PROPERTIES")
|
||||
}
|
||||
|
@ -5469,6 +5646,10 @@ impl fmt::Debug for VideoCodecOperationFlagsKHR {
|
|||
VideoCodecOperationFlagsKHR::ENCODE_H264_EXT.0,
|
||||
"ENCODE_H264_EXT",
|
||||
),
|
||||
(
|
||||
VideoCodecOperationFlagsKHR::ENCODE_H265_EXT.0,
|
||||
"ENCODE_H265_EXT",
|
||||
),
|
||||
(
|
||||
VideoCodecOperationFlagsKHR::DECODE_H264_EXT.0,
|
||||
"DECODE_H264_EXT",
|
||||
|
@ -5634,6 +5815,49 @@ impl fmt::Debug for VideoEncodeH264OutputModeFlagsEXT {
|
|||
debug_flags(f, KNOWN, self.0)
|
||||
}
|
||||
}
|
||||
impl fmt::Debug for VideoEncodeH265CapabilityFlagsEXT {
|
||||
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
||||
const KNOWN: &[(Flags, &str)] = &[];
|
||||
debug_flags(f, KNOWN, self.0)
|
||||
}
|
||||
}
|
||||
impl fmt::Debug for VideoEncodeH265CreateFlagsEXT {
|
||||
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
||||
const KNOWN: &[(Flags, &str)] = &[];
|
||||
debug_flags(f, KNOWN, self.0)
|
||||
}
|
||||
}
|
||||
impl fmt::Debug for VideoEncodeH265CtbSizeFlagsEXT {
|
||||
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
||||
const KNOWN: &[(Flags, &str)] = &[
|
||||
(VideoEncodeH265CtbSizeFlagsEXT::TYPE_8.0, "TYPE_8"),
|
||||
(VideoEncodeH265CtbSizeFlagsEXT::TYPE_16.0, "TYPE_16"),
|
||||
(VideoEncodeH265CtbSizeFlagsEXT::TYPE_32.0, "TYPE_32"),
|
||||
(VideoEncodeH265CtbSizeFlagsEXT::TYPE_64.0, "TYPE_64"),
|
||||
];
|
||||
debug_flags(f, KNOWN, self.0)
|
||||
}
|
||||
}
|
||||
impl fmt::Debug for VideoEncodeH265InputModeFlagsEXT {
|
||||
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
||||
const KNOWN: &[(Flags, &str)] = &[
|
||||
(VideoEncodeH265InputModeFlagsEXT::FRAME.0, "FRAME"),
|
||||
(VideoEncodeH265InputModeFlagsEXT::SLICE.0, "SLICE"),
|
||||
(VideoEncodeH265InputModeFlagsEXT::NON_VCL.0, "NON_VCL"),
|
||||
];
|
||||
debug_flags(f, KNOWN, self.0)
|
||||
}
|
||||
}
|
||||
impl fmt::Debug for VideoEncodeH265OutputModeFlagsEXT {
|
||||
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
||||
const KNOWN: &[(Flags, &str)] = &[
|
||||
(VideoEncodeH265OutputModeFlagsEXT::FRAME.0, "FRAME"),
|
||||
(VideoEncodeH265OutputModeFlagsEXT::SLICE.0, "SLICE"),
|
||||
(VideoEncodeH265OutputModeFlagsEXT::NON_VCL.0, "NON_VCL"),
|
||||
];
|
||||
debug_flags(f, KNOWN, self.0)
|
||||
}
|
||||
}
|
||||
impl fmt::Debug for VideoEncodeRateControlFlagsKHR {
|
||||
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
||||
const KNOWN: &[(Flags, &str)] = &[
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -1657,6 +1657,12 @@ impl DriverId {
|
|||
pub const JUICE_PROPRIETARY: Self = Self(16);
|
||||
#[doc = "Verisilicon, Inc."]
|
||||
pub const VERISILICON_PROPRIETARY: Self = Self(17);
|
||||
#[doc = "Mesa open source project"]
|
||||
pub const MESA_TURNIP: Self = Self(18);
|
||||
#[doc = "Mesa open source project"]
|
||||
pub const MESA_V3DV: Self = Self(19);
|
||||
#[doc = "Mesa open source project"]
|
||||
pub const MESA_PANVK: Self = Self(20);
|
||||
}
|
||||
#[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash, Default)]
|
||||
#[repr(transparent)]
|
||||
|
|
File diff suppressed because it is too large
Load diff
1754
ash/src/vk/native.rs
1754
ash/src/vk/native.rs
File diff suppressed because it is too large
Load diff
|
@ -1 +1 @@
|
|||
Subproject commit 4fee3efc189c83ccd26a9cd8265185c98458c94d
|
||||
Subproject commit 8c1c27d5a9b9de8a17f500053bd08c7ca6bba19c
|
|
@ -1390,7 +1390,7 @@ pub fn variant_ident(enum_name: &str, variant_name: &str) -> Ident {
|
|||
// TODO: Also needs to be more robust, vendor names can be substrings from itself, id:4
|
||||
// like NVX and NV
|
||||
let vendors = [
|
||||
"_NVX", "_KHR", "_EXT", "_NV", "_AMD", "_ANDROID", "_GOOGLE", "_INTEL",
|
||||
"_NVX", "_KHR", "_EXT", "_NV", "_AMD", "_ANDROID", "_GOOGLE", "_INTEL", "_FUCHSIA",
|
||||
];
|
||||
let struct_name = _name.to_shouty_snake_case();
|
||||
let vendor = vendors
|
||||
|
@ -1409,6 +1409,14 @@ pub fn variant_ident(enum_name: &str, variant_name: &str) -> Ident {
|
|||
.unwrap_or_else(|| {
|
||||
if enum_name == "VkResult" || is_enum_variant_with_typo(variant_name) {
|
||||
variant_name.strip_prefix("VK").unwrap()
|
||||
} else if variant_name
|
||||
== "VK_PIPELINE_RASTERIZATION_STATE_CREATE_FRAGMENT_SHADING_RATE_ATTACHMENT_BIT_KHR"
|
||||
{
|
||||
"_RASTERIZATION_STATE_FRAGMENT_SHADING_RATE_ATTACHMENT_BIT_KHR"
|
||||
} else if variant_name
|
||||
== "VK_PIPELINE_RASTERIZATION_STATE_CREATE_FRAGMENT_DENSITY_MAP_ATTACHMENT_BIT_EXT"
|
||||
{
|
||||
"_RASTERIZATION_STATE_FRAGMENT_DENSITY_MAP_ATTACHMENT_BIT_EXT"
|
||||
} else {
|
||||
panic!(
|
||||
"Failed to strip {} prefix from enum variant {}",
|
||||
|
|
Loading…
Reference in a new issue