Skip to content

Commit

Permalink
Update Vulkan-Headers to 1.2.194
Browse files Browse the repository at this point in the history
  • Loading branch information
MarijnS95 committed Sep 28, 2021
1 parent d0ba490 commit 71175f3
Show file tree
Hide file tree
Showing 6 changed files with 1,141 additions and 17 deletions.
18 changes: 18 additions & 0 deletions ash/src/vk/bitflags.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1221,3 +1221,21 @@ 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);
}
59 changes: 59 additions & 0 deletions ash/src/vk/const_debugs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -984,6 +984,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 {
Expand Down Expand Up @@ -2094,6 +2095,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)] = &[
Expand Down Expand Up @@ -2129,6 +2157,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 {
Expand Down Expand Up @@ -2553,6 +2587,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,
Expand Down Expand Up @@ -4862,6 +4897,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")
}
Expand Down
Loading

0 comments on commit 71175f3

Please sign in to comment.