Skip to content

Commit

Permalink
Update Vulkan-Headers to 1.3.237
Browse files Browse the repository at this point in the history
  • Loading branch information
MarijnS95 committed Dec 8, 2022
1 parent 9a6f47a commit a498888
Show file tree
Hide file tree
Showing 7 changed files with 501 additions and 29 deletions.
2 changes: 1 addition & 1 deletion Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Added

- Update Vulkan-Headers to 1.3.236 (#688)
- Update Vulkan-Headers to 1.3.237 (#688)

### Removed

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.236"
version = "0.37.0+1.3.237"
authors = ["maik klein <maikklein@googlemail.com>"]
description = "Vulkan bindings for Rust"
license = "MIT OR Apache-2.0"
Expand Down
20 changes: 20 additions & 0 deletions ash/src/vk/bitflags.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1143,6 +1143,26 @@ impl DeviceAddressBindingFlagsEXT {
}
#[repr(transparent)]
#[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)]
#[doc = "<https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/VkPresentScalingFlagBitsEXT.html>"]
pub struct PresentScalingFlagsEXT(pub(crate) Flags);
vk_bitflags_wrapped!(PresentScalingFlagsEXT, Flags);
impl PresentScalingFlagsEXT {
pub const ONE_TO_ONE: Self = Self(0b1);
pub const ASPECT_RATIO_STRETCH: Self = Self(0b10);
pub const STRETCH: Self = Self(0b100);
}
#[repr(transparent)]
#[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)]
#[doc = "<https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/VkPresentGravityFlagBitsEXT.html>"]
pub struct PresentGravityFlagsEXT(pub(crate) Flags);
vk_bitflags_wrapped!(PresentGravityFlagsEXT, Flags);
impl PresentGravityFlagsEXT {
pub const MIN: Self = Self(0b1);
pub const MAX: Self = Self(0b10);
pub const CENTERED: Self = Self(0b100);
}
#[repr(transparent)]
#[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)]
#[doc = "<https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/VkVideoCodecOperationFlagBitsKHR.html>"]
pub struct VideoCodecOperationFlagsKHR(pub(crate) Flags);
vk_bitflags_wrapped!(VideoCodecOperationFlagsKHR, Flags);
Expand Down
47 changes: 46 additions & 1 deletion ash/src/vk/const_debugs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3862,6 +3862,16 @@ impl fmt::Debug for PolygonMode {
}
}
}
impl fmt::Debug for PresentGravityFlagsEXT {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
const KNOWN: &[(Flags, &str)] = &[
(PresentGravityFlagsEXT::MIN.0, "MIN"),
(PresentGravityFlagsEXT::MAX.0, "MAX"),
(PresentGravityFlagsEXT::CENTERED.0, "CENTERED"),
];
debug_flags(f, KNOWN, self.0)
}
}
impl fmt::Debug for PresentModeKHR {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
let name = match *self {
Expand All @@ -3880,6 +3890,19 @@ impl fmt::Debug for PresentModeKHR {
}
}
}
impl fmt::Debug for PresentScalingFlagsEXT {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
const KNOWN: &[(Flags, &str)] = &[
(PresentScalingFlagsEXT::ONE_TO_ONE.0, "ONE_TO_ONE"),
(
PresentScalingFlagsEXT::ASPECT_RATIO_STRETCH.0,
"ASPECT_RATIO_STRETCH",
),
(PresentScalingFlagsEXT::STRETCH.0, "STRETCH"),
];
debug_flags(f, KNOWN, self.0)
}
}
impl fmt::Debug for PrimitiveTopology {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
let name = match *self {
Expand Down Expand Up @@ -5354,6 +5377,25 @@ impl fmt::Debug for StructureType {
Self::PHYSICAL_DEVICE_SHADER_ATOMIC_FLOAT_2_FEATURES_EXT => {
Some("PHYSICAL_DEVICE_SHADER_ATOMIC_FLOAT_2_FEATURES_EXT")
}
Self::SURFACE_PRESENT_MODE_EXT => Some("SURFACE_PRESENT_MODE_EXT"),
Self::SURFACE_PRESENT_SCALING_CAPABILITIES_EXT => {
Some("SURFACE_PRESENT_SCALING_CAPABILITIES_EXT")
}
Self::SURFACE_PRESENT_MODE_COMPATIBILITY_EXT => {
Some("SURFACE_PRESENT_MODE_COMPATIBILITY_EXT")
}
Self::PHYSICAL_DEVICE_SWAPCHAIN_MAINTENANCE_1_FEATURES_EXT => {
Some("PHYSICAL_DEVICE_SWAPCHAIN_MAINTENANCE_1_FEATURES_EXT")
}
Self::SWAPCHAIN_PRESENT_FENCE_INFO_EXT => Some("SWAPCHAIN_PRESENT_FENCE_INFO_EXT"),
Self::SWAPCHAIN_PRESENT_MODES_CREATE_INFO_EXT => {
Some("SWAPCHAIN_PRESENT_MODES_CREATE_INFO_EXT")
}
Self::SWAPCHAIN_PRESENT_MODE_INFO_EXT => Some("SWAPCHAIN_PRESENT_MODE_INFO_EXT"),
Self::SWAPCHAIN_PRESENT_SCALING_CREATE_INFO_EXT => {
Some("SWAPCHAIN_PRESENT_SCALING_CREATE_INFO_EXT")
}
Self::RELEASE_SWAPCHAIN_IMAGES_INFO_EXT => Some("RELEASE_SWAPCHAIN_IMAGES_INFO_EXT"),
Self::PHYSICAL_DEVICE_DEVICE_GENERATED_COMMANDS_PROPERTIES_NV => {
Some("PHYSICAL_DEVICE_DEVICE_GENERATED_COMMANDS_PROPERTIES_NV")
}
Expand Down Expand Up @@ -6347,8 +6389,11 @@ impl fmt::Debug for SwapchainCreateFlagsKHR {
),
(SwapchainCreateFlagsKHR::PROTECTED.0, "PROTECTED"),
(SwapchainCreateFlagsKHR::MUTABLE_FORMAT.0, "MUTABLE_FORMAT"),
(
SwapchainCreateFlagsKHR::DEFERRED_MEMORY_ALLOCATION_EXT.0,
"DEFERRED_MEMORY_ALLOCATION_EXT",
),
(SwapchainCreateFlagsKHR::RESERVED_4_EXT.0, "RESERVED_4_EXT"),
(SwapchainCreateFlagsKHR::RESERVED_3_SEC.0, "RESERVED_3_SEC"),
];
debug_flags(f, KNOWN, self.0)
}
Expand Down
Loading

0 comments on commit a498888

Please sign in to comment.