Skip to content

Commit

Permalink
Update generated bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleMayes committed Jun 1, 2024
1 parent 2a2f310 commit d750f2b
Show file tree
Hide file tree
Showing 8 changed files with 140 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .commits
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
KhronosGroup/Vulkan-Docs/main/xml/vk.xml => ce03761fd6cc1ab8f54c9f785fffb13f492d7d04
KhronosGroup/Vulkan-Docs/main/xml/vk.xml => ed4ba0242beb89a1795d6084709fa9e713559c94
KhronosGroup/Vulkan-Headers/main/include/vk_video => 5a5c9a643484d888873e32c5d7d484fae8e71d3d
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
- [Clarify that the KHR and EXT load_store_op_none extensions were not promoted to Vulkan 1.3 (#2367)](https://github.com/KhronosGroup/Vulkan-Docs/commit/2a114fbd375b355f3f164048429ebbda022ed73e)
- [May 10, 2024 Vulkan 1.3.285 spec update](https://github.com/KhronosGroup/Vulkan-Docs/commit/8fc686b6321f035dc4a589e5ec1dc67208a71ac2)
- [Add a "constants" type= attribute to <enums> tags (#2366)](https://github.com/KhronosGroup/Vulkan-Docs/commit/ce03761fd6cc1ab8f54c9f785fffb13f492d7d04)
- [Replace <feature number> attribute with <feature depends> (#2331)](https://github.com/KhronosGroup/Vulkan-Docs/commit/8651835d4c709897a590cfc3073ad5121127cdff)
- [Display Timing Queries: Clarify behaviour of VK_PRESENT_MODE_FIFO_RELAXED_KHR (#2363)](https://github.com/KhronosGroup/Vulkan-Docs/commit/5fb5568cece7a13cca68adab38e742c4f3769df7)
- [May 31, 2024 Vulkan 1.3.286 spec update](https://github.com/KhronosGroup/Vulkan-Docs/commit/ed4ba0242beb89a1795d6084709fa9e713559c94)

## [0.23.0] - 2024-03-29

Expand Down
9 changes: 9 additions & 0 deletions vulkanalia-sys/src/enums.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1741,6 +1741,7 @@ impl DriverId {
pub const MESA_NVK: Self = Self(24);
pub const IMAGINATION_OPEN_SOURCE_MESA: Self = Self(25);
pub const MESA_AGXV: Self = Self(26);
pub const RESERVED_27: Self = Self(27);

/// Constructs an instance of this enum with the supplied underlying value.
#[inline]
Expand Down Expand Up @@ -1784,6 +1785,7 @@ impl fmt::Debug for DriverId {
24 => write!(f, "MESA_NVK"),
25 => write!(f, "IMAGINATION_OPEN_SOURCE_MESA"),
26 => write!(f, "MESA_AGXV"),
27 => write!(f, "RESERVED_27"),
_ => self.0.fmt(f),
}
}
Expand Down Expand Up @@ -6277,6 +6279,7 @@ impl StructureType {
pub const PHYSICAL_DEVICE_DESCRIPTOR_POOL_OVERALLOCATION_FEATURES_NV: Self = Self(1000546000);
pub const PHYSICAL_DEVICE_RAW_ACCESS_CHAINS_FEATURES_NV: Self = Self(1000555000);
pub const PHYSICAL_DEVICE_SHADER_ATOMIC_FLOAT16_VECTOR_FEATURES_NV: Self = Self(1000563000);
pub const PHYSICAL_DEVICE_SHADER_REPLICATED_COMPOSITES_FEATURES_EXT: Self = Self(1000564000);
pub const PHYSICAL_DEVICE_RAY_TRACING_VALIDATION_FEATURES_NV: Self = Self(1000568000);
pub const PHYSICAL_DEVICE_IMAGE_ALIGNMENT_CONTROL_FEATURES_MESA: Self = Self(1000575000);
pub const PHYSICAL_DEVICE_IMAGE_ALIGNMENT_CONTROL_PROPERTIES_MESA: Self = Self(1000575001);
Expand Down Expand Up @@ -7397,6 +7400,10 @@ impl fmt::Debug for StructureType {
f,
"PHYSICAL_DEVICE_SHADER_ATOMIC_FLOAT16_VECTOR_FEATURES_NV"
),
1000564000 => write!(
f,
"PHYSICAL_DEVICE_SHADER_REPLICATED_COMPOSITES_FEATURES_EXT"
),
1000568000 => write!(f, "PHYSICAL_DEVICE_RAY_TRACING_VALIDATION_FEATURES_NV"),
1000575000 => write!(f, "PHYSICAL_DEVICE_IMAGE_ALIGNMENT_CONTROL_FEATURES_MESA"),
1000575001 => write!(f, "PHYSICAL_DEVICE_IMAGE_ALIGNMENT_CONTROL_PROPERTIES_MESA"),
Expand Down Expand Up @@ -7752,6 +7759,7 @@ impl fmt::Debug for ValidationFeatureEnableEXT {
pub struct VendorId(i32);

impl VendorId {
pub const KHRONOS: Self = Self(65536);
pub const VIV: Self = Self(65537);
pub const VSI: Self = Self(65538);
pub const KAZAN: Self = Self(65539);
Expand All @@ -7776,6 +7784,7 @@ impl VendorId {
impl fmt::Debug for VendorId {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
match self.0 {
65536 => write!(f, "KHRONOS"),
65537 => write!(f, "VIV"),
65538 => write!(f, "VSI"),
65539 => write!(f, "KAZAN"),
Expand Down
16 changes: 16 additions & 0 deletions vulkanalia-sys/src/extensions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2259,6 +2259,22 @@ pub const EXT_SHADER_OBJECT_EXTENSION: Extension = Extension {
promoted_to: None,
};

/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/VK_EXT_shader_replicated_composites.html>
#[allow(deprecated)]
pub const EXT_SHADER_REPLICATED_COMPOSITES_EXTENSION: Extension = Extension {
name: ExtensionName::from_bytes(b"VK_EXT_shader_replicated_composites"),
number: 565,
type_: "device",
author: "EXT",
contact: "Kevin Petit @kpet",
platform: None,
required_extensions: None,
required_version: None,
deprecated_by: None,
obsoleted_by: None,
promoted_to: None,
};

/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/VK_EXT_shader_stencil_export.html>
#[allow(deprecated)]
pub const EXT_SHADER_STENCIL_EXPORT_EXTENSION: Extension = Extension {
Expand Down
20 changes: 20 additions & 0 deletions vulkanalia-sys/src/structs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15715,6 +15715,26 @@ impl Default for PhysicalDeviceShaderQuadControlFeaturesKHR {
}
}

/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/VkPhysicalDeviceShaderReplicatedCompositesFeaturesEXT.html>
#[repr(C)]
#[derive(Copy, Clone, Debug, Eq, Hash, PartialEq)]
pub struct PhysicalDeviceShaderReplicatedCompositesFeaturesEXT {
pub s_type: StructureType,
pub next: *mut c_void,
pub shader_replicated_composites: Bool32,
}

impl Default for PhysicalDeviceShaderReplicatedCompositesFeaturesEXT {
#[inline]
fn default() -> Self {
Self {
s_type: StructureType::PHYSICAL_DEVICE_SHADER_REPLICATED_COMPOSITES_FEATURES_EXT,
next: ptr::null_mut(),
shader_replicated_composites: Bool32::default(),
}
}
}

/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/VkPhysicalDeviceShaderSMBuiltinsFeaturesNV.html>
#[repr(C)]
#[derive(Copy, Clone, Debug, Eq, Hash, PartialEq)]
Expand Down
60 changes: 60 additions & 0 deletions vulkanalia/src/vk/builders.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13525,6 +13525,7 @@ unsafe impl ExtendsDeviceCreateInfo for PhysicalDeviceShaderMaximalReconvergence
unsafe impl ExtendsDeviceCreateInfo for PhysicalDeviceShaderModuleIdentifierFeaturesEXT {}
unsafe impl ExtendsDeviceCreateInfo for PhysicalDeviceShaderObjectFeaturesEXT {}
unsafe impl ExtendsDeviceCreateInfo for PhysicalDeviceShaderQuadControlFeaturesKHR {}
unsafe impl ExtendsDeviceCreateInfo for PhysicalDeviceShaderReplicatedCompositesFeaturesEXT {}
unsafe impl ExtendsDeviceCreateInfo for PhysicalDeviceShaderSMBuiltinsFeaturesNV {}
unsafe impl ExtendsDeviceCreateInfo for PhysicalDeviceShaderSubgroupExtendedTypesFeatures {}
unsafe impl ExtendsDeviceCreateInfo for PhysicalDeviceShaderSubgroupRotateFeaturesKHR {}
Expand Down Expand Up @@ -39766,6 +39767,7 @@ unsafe impl ExtendsPhysicalDeviceFeatures2 for PhysicalDeviceShaderMaximalReconv
unsafe impl ExtendsPhysicalDeviceFeatures2 for PhysicalDeviceShaderModuleIdentifierFeaturesEXT {}
unsafe impl ExtendsPhysicalDeviceFeatures2 for PhysicalDeviceShaderObjectFeaturesEXT {}
unsafe impl ExtendsPhysicalDeviceFeatures2 for PhysicalDeviceShaderQuadControlFeaturesKHR {}
unsafe impl ExtendsPhysicalDeviceFeatures2 for PhysicalDeviceShaderReplicatedCompositesFeaturesEXT {}
unsafe impl ExtendsPhysicalDeviceFeatures2 for PhysicalDeviceShaderSMBuiltinsFeaturesNV {}
unsafe impl ExtendsPhysicalDeviceFeatures2 for PhysicalDeviceShaderSubgroupExtendedTypesFeatures {}
unsafe impl ExtendsPhysicalDeviceFeatures2 for PhysicalDeviceShaderSubgroupRotateFeaturesKHR {}
Expand Down Expand Up @@ -53301,6 +53303,64 @@ unsafe impl Cast for PhysicalDeviceShaderQuadControlFeaturesKHRBuilder {
}
}

unsafe impl Cast for PhysicalDeviceShaderReplicatedCompositesFeaturesEXT {
type Target = PhysicalDeviceShaderReplicatedCompositesFeaturesEXT;

#[inline]
fn into(self) -> Self::Target {
self
}
}

impl HasBuilder<'static> for PhysicalDeviceShaderReplicatedCompositesFeaturesEXT {
type Builder = PhysicalDeviceShaderReplicatedCompositesFeaturesEXTBuilder;
}

/// A builder for a [`PhysicalDeviceShaderReplicatedCompositesFeaturesEXT`].
#[repr(transparent)]
#[derive(Copy, Clone, Debug, Default)]
pub struct PhysicalDeviceShaderReplicatedCompositesFeaturesEXTBuilder {
value: PhysicalDeviceShaderReplicatedCompositesFeaturesEXT,
}

impl PhysicalDeviceShaderReplicatedCompositesFeaturesEXTBuilder {
#[inline]
pub fn shader_replicated_composites(mut self, shader_replicated_composites: bool) -> Self {
self.value.shader_replicated_composites = shader_replicated_composites as Bool32;
self
}

#[inline]
pub fn build(self) -> PhysicalDeviceShaderReplicatedCompositesFeaturesEXT {
self.value
}
}

impl ops::Deref for PhysicalDeviceShaderReplicatedCompositesFeaturesEXTBuilder {
type Target = PhysicalDeviceShaderReplicatedCompositesFeaturesEXT;

#[inline]
fn deref(&self) -> &Self::Target {
&self.value
}
}

impl ops::DerefMut for PhysicalDeviceShaderReplicatedCompositesFeaturesEXTBuilder {
#[inline]
fn deref_mut(&mut self) -> &mut Self::Target {
&mut self.value
}
}

unsafe impl Cast for PhysicalDeviceShaderReplicatedCompositesFeaturesEXTBuilder {
type Target = PhysicalDeviceShaderReplicatedCompositesFeaturesEXT;

#[inline]
fn into(self) -> Self::Target {
self.value
}
}

unsafe impl Cast for PhysicalDeviceShaderSMBuiltinsFeaturesNV {
type Target = PhysicalDeviceShaderSMBuiltinsFeaturesNV;

Expand Down
22 changes: 22 additions & 0 deletions vulkanalia/src/vk/chains.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10750,6 +10750,28 @@ unsafe impl OutputChainStruct for PhysicalDeviceShaderQuadControlFeaturesKHR {
}
}

unsafe impl InputChainStruct for PhysicalDeviceShaderReplicatedCompositesFeaturesEXT {
const TYPE: StructureType =
StructureType::PHYSICAL_DEVICE_SHADER_REPLICATED_COMPOSITES_FEATURES_EXT;

#[inline]
fn s_type(&self) -> StructureType {
self.s_type
}

#[inline]
fn next(&self) -> *const c_void {
self.next
}
}

unsafe impl OutputChainStruct for PhysicalDeviceShaderReplicatedCompositesFeaturesEXT {
#[inline]
fn next_mut(&self) -> *mut c_void {
self.next
}
}

unsafe impl InputChainStruct for PhysicalDeviceShaderSMBuiltinsFeaturesNV {
const TYPE: StructureType = StructureType::PHYSICAL_DEVICE_SHADER_SM_BUILTINS_FEATURES_NV;

Expand Down
9 changes: 9 additions & 0 deletions vulkanalia/src/vk/extensions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4675,6 +4675,15 @@ pub trait ExtShaderObjectExtension: DeviceV1_0 {

impl ExtShaderObjectExtension for crate::Device {}

/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/VK_EXT_shader_replicated_composites.html>
pub trait ExtShaderReplicatedCompositesExtension: DeviceV1_0 {
/// The metadata for this extension.
#[allow(deprecated)]
const METADATA: Extension = EXT_SHADER_REPLICATED_COMPOSITES_EXTENSION;
}

impl ExtShaderReplicatedCompositesExtension for crate::Device {}

/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/VK_EXT_shader_stencil_export.html>
pub trait ExtShaderStencilExportExtension: DeviceV1_0 {
/// The metadata for this extension.
Expand Down

0 comments on commit d750f2b

Please sign in to comment.