Skip to content

Commit

Permalink
Update generated bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleMayes committed Sep 8, 2023
1 parent f63c3e3 commit b28745f
Show file tree
Hide file tree
Showing 9 changed files with 1,719 additions and 6 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
## [0.22.0] - UNRELEASED

### Bindings Updates
- [August 25, 2023 Vulkan 1.3.262 spec update](https://github.com/KhronosGroup/Vulkan-Docs/commit/6952ad062f031e3fc99b53ef28e009cbeca64583)
- [September 2, 2023 Vulkan 1.3.263 spec update](https://github.com/KhronosGroup/Vulkan-Docs/commit/4e32929f96e5af77fe5202b959f18c4ad7a06bbc)
- [Merge branch 'layered-driver-proposal' of github.com:jenatali/Vulkan-Docs into jenatali-layered-driver-proposal](https://github.com/KhronosGroup/Vulkan-Docs/commit/11c3bfcc46b856e66a32215ebc475516225cf01b)
- [September 8, 2023 Vulkan 1.3.264 spec update](https://github.com/KhronosGroup/Vulkan-Docs/commit/3d25cd996b16ae0781e15735df5762efa9f71010)

### Fixed
- Fixed `push_next` not adding a chain of structs properly

Expand Down
2 changes: 1 addition & 1 deletion Vulkan-Docs
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# https://github.com/KhronosGroup/Vulkan-Docs
b9aad705f0d9e5e6734ac2ad671d5d1de57b05e0
3d25cd996b16ae0781e15735df5762efa9f71010
11 changes: 11 additions & 0 deletions vulkanalia-sys/src/bitmasks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -442,6 +442,8 @@ bitflags! {
const FREE_DESCRIPTOR_SET = 1;
const UPDATE_AFTER_BIND = 1 << 1;
const HOST_ONLY_EXT = 1 << 2;
const ALLOW_OVERALLOCATION_SETS_NV = 1 << 3;
const ALLOW_OVERALLOCATION_POOLS_NV = 1 << 4;
}
}

Expand Down Expand Up @@ -798,6 +800,15 @@ bitflags! {
}
}

bitflags! {
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/VkFrameBoundaryFlagsEXT.html>
#[repr(transparent)]
#[derive(Default)]
pub struct FrameBoundaryFlagsEXT: Flags {
const FRAME_END = 1;
}
}

bitflags! {
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/VkFramebufferCreateFlags.html>
#[repr(transparent)]
Expand Down
135 changes: 133 additions & 2 deletions vulkanalia-sys/src/enums.rs
Original file line number Diff line number Diff line change
Expand Up @@ -488,6 +488,38 @@ impl fmt::Debug for BlendOverlapEXT {
}
}

/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/VkBlockMatchWindowCompareModeQCOM.html>
#[repr(transparent)]
#[derive(Copy, Clone, PartialEq, Eq, PartialOrd, Ord, Hash, Default)]
pub struct BlockMatchWindowCompareModeQCOM(i32);

impl BlockMatchWindowCompareModeQCOM {
pub const MIN: Self = Self(0);
pub const MAX: Self = Self(1);

/// Constructs an instance of this enum with the supplied underlying value.
#[inline]
pub const fn from_raw(value: i32) -> Self {
Self(value)
}

/// Gets the underlying value for this enum instance.
#[inline]
pub const fn as_raw(self) -> i32 {
self.0
}
}

impl fmt::Debug for BlockMatchWindowCompareModeQCOM {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
match self.0 {
0 => write!(f, "MIN"),
1 => write!(f, "MAX"),
_ => self.0.fmt(f),
}
}
}

/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/VkBorderColor.html>
#[repr(transparent)]
#[derive(Copy, Clone, PartialEq, Eq, PartialOrd, Ord, Hash, Default)]
Expand Down Expand Up @@ -1064,6 +1096,42 @@ impl fmt::Debug for CoverageReductionModeNV {
}
}

/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/VkCubicFilterWeightsQCOM.html>
#[repr(transparent)]
#[derive(Copy, Clone, PartialEq, Eq, PartialOrd, Ord, Hash, Default)]
pub struct CubicFilterWeightsQCOM(i32);

impl CubicFilterWeightsQCOM {
pub const CATMULL_ROM: Self = Self(0);
pub const ZERO_TANGENT_CARDINAL: Self = Self(1);
pub const B_SPLINE: Self = Self(2);
pub const MITCHELL_NETRAVALI: Self = Self(3);

/// Constructs an instance of this enum with the supplied underlying value.
#[inline]
pub const fn from_raw(value: i32) -> Self {
Self(value)
}

/// Gets the underlying value for this enum instance.
#[inline]
pub const fn as_raw(self) -> i32 {
self.0
}
}

impl fmt::Debug for CubicFilterWeightsQCOM {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
match self.0 {
0 => write!(f, "CATMULL_ROM"),
1 => write!(f, "ZERO_TANGENT_CARDINAL"),
2 => write!(f, "B_SPLINE"),
3 => write!(f, "MITCHELL_NETRAVALI"),
_ => self.0.fmt(f),
}
}
}

/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/VkDebugReportObjectTypeEXT.html>
#[repr(transparent)]
#[derive(Copy, Clone, PartialEq, Eq, PartialOrd, Ord, Hash, Default)]
Expand Down Expand Up @@ -2966,6 +3034,38 @@ impl fmt::Debug for InternalAllocationType {
}
}

/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/VkLayeredDriverUnderlyingApiMSFT.html>
#[repr(transparent)]
#[derive(Copy, Clone, PartialEq, Eq, PartialOrd, Ord, Hash, Default)]
pub struct LayeredDriverUnderlyingApiMSFT(i32);

impl LayeredDriverUnderlyingApiMSFT {
pub const NONE: Self = Self(0);
pub const D3D12: Self = Self(1);

/// Constructs an instance of this enum with the supplied underlying value.
#[inline]
pub const fn from_raw(value: i32) -> Self {
Self(value)
}

/// Gets the underlying value for this enum instance.
#[inline]
pub const fn as_raw(self) -> i32 {
self.0
}
}

impl fmt::Debug for LayeredDriverUnderlyingApiMSFT {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
match self.0 {
0 => write!(f, "NONE"),
1 => write!(f, "D3D12"),
_ => self.0.fmt(f),
}
}
}

/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/VkLineRasterizationModeEXT.html>
#[repr(transparent)]
#[derive(Copy, Clone, PartialEq, Eq, PartialOrd, Ord, Hash, Default)]
Expand Down Expand Up @@ -4525,6 +4625,7 @@ impl SamplerReductionMode {
pub const WEIGHTED_AVERAGE: Self = Self(0);
pub const MIN: Self = Self(1);
pub const MAX: Self = Self(2);
pub const WEIGHTED_AVERAGE_RANGECLAMP_QCOM: Self = Self(1000521000);

/// Constructs an instance of this enum with the supplied underlying value.
#[inline]
Expand All @@ -4545,6 +4646,7 @@ impl fmt::Debug for SamplerReductionMode {
0 => write!(f, "WEIGHTED_AVERAGE"),
1 => write!(f, "MIN"),
2 => write!(f, "MAX"),
1000521000 => write!(f, "WEIGHTED_AVERAGE_RANGECLAMP_QCOM"),
_ => self.0.fmt(f),
}
}
Expand Down Expand Up @@ -5279,7 +5381,7 @@ impl StructureType {
pub const MULTIVIEW_PER_VIEW_ATTRIBUTES_INFO_NVX: Self = Self(1000044009);
pub const STREAM_DESCRIPTOR_SURFACE_CREATE_INFO_GGP: Self = Self(1000049000);
pub const PHYSICAL_DEVICE_CORNER_SAMPLED_IMAGE_FEATURES_NV: Self = Self(1000050000);
pub const PRIVATE_VENDOR_INFO_RESERVED_OFFSET_0_NV: Self = Self(1000051000);
pub const PRIVATE_VENDOR_INFO_PLACEHOLDER_OFFSET_0_NV: Self = Self(1000051000);
pub const EXTERNAL_MEMORY_IMAGE_CREATE_INFO_NV: Self = Self(1000056000);
pub const EXPORT_MEMORY_ALLOCATE_INFO_NV: Self = Self(1000056001);
pub const IMPORT_MEMORY_WIN32_HANDLE_INFO_NV: Self = Self(1000057000);
Expand Down Expand Up @@ -5675,6 +5777,8 @@ impl StructureType {
pub const MEMORY_GET_SCI_BUF_INFO_NV: Self = Self(1000374002);
pub const MEMORY_SCI_BUF_PROPERTIES_NV: Self = Self(1000374003);
pub const PHYSICAL_DEVICE_EXTERNAL_MEMORY_SCI_BUF_FEATURES_NV: Self = Self(1000374004);
pub const PHYSICAL_DEVICE_FRAME_BOUNDARY_FEATURES_EXT: Self = Self(1000375000);
pub const FRAME_BOUNDARY_EXT: Self = Self(1000375001);
pub const PHYSICAL_DEVICE_MULTISAMPLED_RENDER_TO_SINGLE_SAMPLED_FEATURES_EXT: Self =
Self(1000376000);
pub const SUBPASS_RESOLVE_PERFORMANCE_QUERY_EXT: Self = Self(1000376001);
Expand Down Expand Up @@ -5796,13 +5900,24 @@ impl StructureType {
pub const PHYSICAL_DEVICE_MULTIVIEW_PER_VIEW_RENDER_AREAS_FEATURES_QCOM: Self =
Self(1000510000);
pub const MULTIVIEW_PER_VIEW_RENDER_AREAS_RENDER_PASS_BEGIN_INFO_QCOM: Self = Self(1000510001);
pub const PHYSICAL_DEVICE_IMAGE_PROCESSING_2_FEATURES_QCOM: Self = Self(1000518000);
pub const PHYSICAL_DEVICE_IMAGE_PROCESSING_2_PROPERTIES_QCOM: Self = Self(1000518001);
pub const SAMPLER_BLOCK_MATCH_WINDOW_CREATE_INFO_QCOM: Self = Self(1000518002);
pub const SAMPLER_CUBIC_WEIGHTS_CREATE_INFO_QCOM: Self = Self(1000519000);
pub const PHYSICAL_DEVICE_CUBIC_WEIGHTS_FEATURES_QCOM: Self = Self(1000519001);
pub const BLIT_IMAGE_CUBIC_WEIGHTS_INFO_QCOM: Self = Self(1000519002);
pub const PHYSICAL_DEVICE_YCBCR_DEGAMMA_FEATURES_QCOM: Self = Self(1000520000);
pub const SAMPLER_YCBCR_CONVERSION_YCBCR_DEGAMMA_CREATE_INFO_QCOM: Self = Self(1000520001);
pub const PHYSICAL_DEVICE_CUBIC_CLAMP_FEATURES_QCOM: Self = Self(1000521000);
pub const PHYSICAL_DEVICE_ATTACHMENT_FEEDBACK_LOOP_DYNAMIC_STATE_FEATURES_EXT: Self =
Self(1000524000);
pub const SCREEN_BUFFER_PROPERTIES_QNX: Self = Self(1000529000);
pub const SCREEN_BUFFER_FORMAT_PROPERTIES_QNX: Self = Self(1000529001);
pub const IMPORT_SCREEN_BUFFER_INFO_QNX: Self = Self(1000529002);
pub const EXTERNAL_FORMAT_QNX: Self = Self(1000529003);
pub const PHYSICAL_DEVICE_EXTERNAL_MEMORY_SCREEN_BUFFER_FEATURES_QNX: Self = Self(1000529004);
pub const PHYSICAL_DEVICE_LAYERED_DRIVER_PROPERTIES_MSFT: Self = Self(1000530000);
pub const PHYSICAL_DEVICE_DESCRIPTOR_POOL_OVERALLOCATION_FEATURES_NV: Self = Self(1000546000);

/// Constructs an instance of this enum with the supplied underlying value.
#[inline]
Expand Down Expand Up @@ -6087,7 +6202,7 @@ impl fmt::Debug for StructureType {
1000044009 => write!(f, "MULTIVIEW_PER_VIEW_ATTRIBUTES_INFO_NVX"),
1000049000 => write!(f, "STREAM_DESCRIPTOR_SURFACE_CREATE_INFO_GGP"),
1000050000 => write!(f, "PHYSICAL_DEVICE_CORNER_SAMPLED_IMAGE_FEATURES_NV"),
1000051000 => write!(f, "PRIVATE_VENDOR_INFO_RESERVED_OFFSET_0_NV"),
1000051000 => write!(f, "PRIVATE_VENDOR_INFO_PLACEHOLDER_OFFSET_0_NV"),
1000056000 => write!(f, "EXTERNAL_MEMORY_IMAGE_CREATE_INFO_NV"),
1000056001 => write!(f, "EXPORT_MEMORY_ALLOCATE_INFO_NV"),
1000057000 => write!(f, "IMPORT_MEMORY_WIN32_HANDLE_INFO_NV"),
Expand Down Expand Up @@ -6559,6 +6674,8 @@ impl fmt::Debug for StructureType {
1000374002 => write!(f, "MEMORY_GET_SCI_BUF_INFO_NV"),
1000374003 => write!(f, "MEMORY_SCI_BUF_PROPERTIES_NV"),
1000374004 => write!(f, "PHYSICAL_DEVICE_EXTERNAL_MEMORY_SCI_BUF_FEATURES_NV"),
1000375000 => write!(f, "PHYSICAL_DEVICE_FRAME_BOUNDARY_FEATURES_EXT"),
1000375001 => write!(f, "FRAME_BOUNDARY_EXT"),
1000376000 => write!(
f,
"PHYSICAL_DEVICE_MULTISAMPLED_RENDER_TO_SINGLE_SAMPLED_FEATURES_EXT"
Expand Down Expand Up @@ -6728,6 +6845,15 @@ impl fmt::Debug for StructureType {
f,
"MULTIVIEW_PER_VIEW_RENDER_AREAS_RENDER_PASS_BEGIN_INFO_QCOM"
),
1000518000 => write!(f, "PHYSICAL_DEVICE_IMAGE_PROCESSING_2_FEATURES_QCOM"),
1000518001 => write!(f, "PHYSICAL_DEVICE_IMAGE_PROCESSING_2_PROPERTIES_QCOM"),
1000518002 => write!(f, "SAMPLER_BLOCK_MATCH_WINDOW_CREATE_INFO_QCOM"),
1000519000 => write!(f, "SAMPLER_CUBIC_WEIGHTS_CREATE_INFO_QCOM"),
1000519001 => write!(f, "PHYSICAL_DEVICE_CUBIC_WEIGHTS_FEATURES_QCOM"),
1000519002 => write!(f, "BLIT_IMAGE_CUBIC_WEIGHTS_INFO_QCOM"),
1000520000 => write!(f, "PHYSICAL_DEVICE_YCBCR_DEGAMMA_FEATURES_QCOM"),
1000520001 => write!(f, "SAMPLER_YCBCR_CONVERSION_YCBCR_DEGAMMA_CREATE_INFO_QCOM"),
1000521000 => write!(f, "PHYSICAL_DEVICE_CUBIC_CLAMP_FEATURES_QCOM"),
1000524000 => write!(
f,
"PHYSICAL_DEVICE_ATTACHMENT_FEEDBACK_LOOP_DYNAMIC_STATE_FEATURES_EXT"
Expand All @@ -6740,6 +6866,11 @@ impl fmt::Debug for StructureType {
f,
"PHYSICAL_DEVICE_EXTERNAL_MEMORY_SCREEN_BUFFER_FEATURES_QNX"
),
1000530000 => write!(f, "PHYSICAL_DEVICE_LAYERED_DRIVER_PROPERTIES_MSFT"),
1000546000 => write!(
f,
"PHYSICAL_DEVICE_DESCRIPTOR_POOL_OVERALLOCATION_FEATURES_NV"
),
_ => self.0.fmt(f),
}
}
Expand Down
Loading

0 comments on commit b28745f

Please sign in to comment.