Skip to content

Commit

Permalink
Update Vulkan-Headers to 1.2.168 (#363)
Browse files Browse the repository at this point in the history
  • Loading branch information
MarijnS95 authored Feb 28, 2021
1 parent 7523d0b commit 6b4e6c8
Show file tree
Hide file tree
Showing 4 changed files with 463 additions and 27 deletions.
41 changes: 37 additions & 4 deletions ash/src/vk/const_debugs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,16 @@ impl fmt::Debug for AccelerationStructureCompatibilityKHR {
}
impl fmt::Debug for AccelerationStructureCreateFlagsKHR {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
const KNOWN: &[(Flags, &str)] = &[(
AccelerationStructureCreateFlagsKHR::DEVICE_ADDRESS_CAPTURE_REPLAY.0,
"DEVICE_ADDRESS_CAPTURE_REPLAY",
)];
const KNOWN: &[(Flags, &str)] = &[
(
AccelerationStructureCreateFlagsKHR::DEVICE_ADDRESS_CAPTURE_REPLAY.0,
"DEVICE_ADDRESS_CAPTURE_REPLAY",
),
(
AccelerationStructureCreateFlagsKHR::RESERVED_2_NV.0,
"RESERVED_2_NV",
),
];
debug_flags(f, KNOWN, self.0)
}
}
Expand Down Expand Up @@ -464,6 +470,10 @@ impl fmt::Debug for BuildAccelerationStructureFlagsKHR {
BuildAccelerationStructureFlagsKHR::LOW_MEMORY.0,
"LOW_MEMORY",
),
(
BuildAccelerationStructureFlagsKHR::RESERVED_5_NV.0,
"RESERVED_5_NV",
),
];
debug_flags(f, KNOWN, self.0)
}
Expand Down Expand Up @@ -1255,6 +1265,14 @@ impl fmt::Debug for ExternalFenceHandleTypeFlags {
ExternalFenceHandleTypeFlags::EXTERNAL_FENCE_HANDLE_TYPE_SYNC_FD.0,
"EXTERNAL_FENCE_HANDLE_TYPE_SYNC_FD",
),
(
ExternalFenceHandleTypeFlags::EXTERNAL_FENCE_HANDLE_TYPE_RESERVED_4_NV.0,
"EXTERNAL_FENCE_HANDLE_TYPE_RESERVED_4_NV",
),
(
ExternalFenceHandleTypeFlags::EXTERNAL_FENCE_HANDLE_TYPE_RESERVED_5_NV.0,
"EXTERNAL_FENCE_HANDLE_TYPE_RESERVED_5_NV",
),
];
debug_flags(f, KNOWN, self.0)
}
Expand Down Expand Up @@ -1364,6 +1382,14 @@ impl fmt::Debug for ExternalSemaphoreHandleTypeFlags {
ExternalSemaphoreHandleTypeFlags::EXTERNAL_SEMAPHORE_HANDLE_TYPE_SYNC_FD.0,
"EXTERNAL_SEMAPHORE_HANDLE_TYPE_SYNC_FD",
),
(
ExternalSemaphoreHandleTypeFlags::EXTERNAL_SEMAPHORE_HANDLE_TYPE_RESERVED_5_NV.0,
"EXTERNAL_SEMAPHORE_HANDLE_TYPE_RESERVED_5_NV",
),
(
ExternalSemaphoreHandleTypeFlags::EXTERNAL_SEMAPHORE_HANDLE_TYPE_RESERVED_6_NV.0,
"EXTERNAL_SEMAPHORE_HANDLE_TYPE_RESERVED_6_NV",
),
];
debug_flags(f, KNOWN, self.0)
}
Expand Down Expand Up @@ -4259,6 +4285,9 @@ impl fmt::Debug for StructureType {
Some("DEVICE_DIAGNOSTICS_CONFIG_CREATE_INFO_NV")
}
Self::RESERVED_QCOM => Some("RESERVED_QCOM"),
Self::PHYSICAL_DEVICE_ZERO_INITIALIZE_WORKGROUP_MEMORY_FEATURES_KHR => {
Some("PHYSICAL_DEVICE_ZERO_INITIALIZE_WORKGROUP_MEMORY_FEATURES_KHR")
}
Self::PHYSICAL_DEVICE_FRAGMENT_SHADING_RATE_ENUMS_PROPERTIES_NV => {
Some("PHYSICAL_DEVICE_FRAGMENT_SHADING_RATE_ENUMS_PROPERTIES_NV")
}
Expand All @@ -4278,6 +4307,9 @@ impl fmt::Debug for StructureType {
Self::PHYSICAL_DEVICE_IMAGE_ROBUSTNESS_FEATURES_EXT => {
Some("PHYSICAL_DEVICE_IMAGE_ROBUSTNESS_FEATURES_EXT")
}
Self::PHYSICAL_DEVICE_WORKGROUP_MEMORY_EXPLICIT_LAYOUT_FEATURES_KHR => {
Some("PHYSICAL_DEVICE_WORKGROUP_MEMORY_EXPLICIT_LAYOUT_FEATURES_KHR")
}
Self::COPY_BUFFER_INFO_2_KHR => Some("COPY_BUFFER_INFO_2_KHR"),
Self::COPY_IMAGE_INFO_2_KHR => Some("COPY_IMAGE_INFO_2_KHR"),
Self::COPY_BUFFER_TO_IMAGE_INFO_2_KHR => Some("COPY_BUFFER_TO_IMAGE_INFO_2_KHR"),
Expand All @@ -4299,6 +4331,7 @@ impl fmt::Debug for StructureType {
Self::MUTABLE_DESCRIPTOR_TYPE_CREATE_INFO_VALVE => {
Some("MUTABLE_DESCRIPTOR_TYPE_CREATE_INFO_VALVE")
}
Self::SCREEN_SURFACE_CREATE_INFO_QNX => Some("SCREEN_SURFACE_CREATE_INFO_QNX"),
Self::PHYSICAL_DEVICE_SUBGROUP_PROPERTIES => {
Some("PHYSICAL_DEVICE_SUBGROUP_PROPERTIES")
}
Expand Down
160 changes: 159 additions & 1 deletion ash/src/vk/definitions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use std::os::raw::*;
pub const API_VERSION_1_0: u32 = crate::vk::make_version(1, 0, 0);
pub const API_VERSION_1_1: u32 = crate::vk::make_version(1, 1, 0);
pub const API_VERSION_1_2: u32 = crate::vk::make_version(1, 2, 0);
pub const HEADER_VERSION: u32 = 166u32;
pub const HEADER_VERSION: u32 = 168u32;
pub const HEADER_VERSION_COMPLETE: u32 = crate::vk::make_version(1, 2, HEADER_VERSION);
#[doc = "<https://www.khronos.org/registry/vulkan/specs/1.2-extensions/man/html/VkSampleMask.html>"]
pub type SampleMask = u32;
Expand Down Expand Up @@ -46217,6 +46217,70 @@ impl<'a> DeviceDiagnosticsConfigCreateInfoNVBuilder<'a> {
}
#[repr(C)]
#[derive(Copy, Clone, Debug)]
#[doc = "<https://www.khronos.org/registry/vulkan/specs/1.2-extensions/man/html/VkPhysicalDeviceZeroInitializeWorkgroupMemoryFeaturesKHR.html>"]
pub struct PhysicalDeviceZeroInitializeWorkgroupMemoryFeaturesKHR {
pub s_type: StructureType,
pub p_next: *mut c_void,
pub shader_zero_initialize_workgroup_memory: Bool32,
}
impl ::std::default::Default for PhysicalDeviceZeroInitializeWorkgroupMemoryFeaturesKHR {
fn default() -> PhysicalDeviceZeroInitializeWorkgroupMemoryFeaturesKHR {
PhysicalDeviceZeroInitializeWorkgroupMemoryFeaturesKHR {
s_type: StructureType::PHYSICAL_DEVICE_ZERO_INITIALIZE_WORKGROUP_MEMORY_FEATURES_KHR,
p_next: ::std::ptr::null_mut(),
shader_zero_initialize_workgroup_memory: Bool32::default(),
}
}
}
impl PhysicalDeviceZeroInitializeWorkgroupMemoryFeaturesKHR {
pub fn builder<'a>() -> PhysicalDeviceZeroInitializeWorkgroupMemoryFeaturesKHRBuilder<'a> {
PhysicalDeviceZeroInitializeWorkgroupMemoryFeaturesKHRBuilder {
inner: PhysicalDeviceZeroInitializeWorkgroupMemoryFeaturesKHR::default(),
marker: ::std::marker::PhantomData,
}
}
}
#[repr(transparent)]
pub struct PhysicalDeviceZeroInitializeWorkgroupMemoryFeaturesKHRBuilder<'a> {
inner: PhysicalDeviceZeroInitializeWorkgroupMemoryFeaturesKHR,
marker: ::std::marker::PhantomData<&'a ()>,
}
unsafe impl ExtendsDeviceCreateInfo
for PhysicalDeviceZeroInitializeWorkgroupMemoryFeaturesKHRBuilder<'_>
{
}
unsafe impl ExtendsDeviceCreateInfo for PhysicalDeviceZeroInitializeWorkgroupMemoryFeaturesKHR {}
impl<'a> ::std::ops::Deref for PhysicalDeviceZeroInitializeWorkgroupMemoryFeaturesKHRBuilder<'a> {
type Target = PhysicalDeviceZeroInitializeWorkgroupMemoryFeaturesKHR;
fn deref(&self) -> &Self::Target {
&self.inner
}
}
impl<'a> ::std::ops::DerefMut
for PhysicalDeviceZeroInitializeWorkgroupMemoryFeaturesKHRBuilder<'a>
{
fn deref_mut(&mut self) -> &mut Self::Target {
&mut self.inner
}
}
impl<'a> PhysicalDeviceZeroInitializeWorkgroupMemoryFeaturesKHRBuilder<'a> {
pub fn shader_zero_initialize_workgroup_memory(
mut self,
shader_zero_initialize_workgroup_memory: bool,
) -> PhysicalDeviceZeroInitializeWorkgroupMemoryFeaturesKHRBuilder<'a> {
self.inner.shader_zero_initialize_workgroup_memory =
shader_zero_initialize_workgroup_memory.into();
self
}
#[doc = r" Calling build will **discard** all the lifetime information. Only call this if"]
#[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"]
#[doc = r" so references to builders can be passed directly to Vulkan functions."]
pub fn build(self) -> PhysicalDeviceZeroInitializeWorkgroupMemoryFeaturesKHR {
self.inner
}
}
#[repr(C)]
#[derive(Copy, Clone, Debug)]
#[doc = "<https://www.khronos.org/registry/vulkan/specs/1.2-extensions/man/html/VkPhysicalDeviceRobustness2FeaturesEXT.html>"]
pub struct PhysicalDeviceRobustness2FeaturesEXT {
pub s_type: StructureType,
Expand Down Expand Up @@ -46420,6 +46484,100 @@ impl<'a> PhysicalDeviceImageRobustnessFeaturesEXTBuilder<'a> {
}
#[repr(C)]
#[derive(Copy, Clone, Debug)]
#[doc = "<https://www.khronos.org/registry/vulkan/specs/1.2-extensions/man/html/VkPhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR.html>"]
pub struct PhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR {
pub s_type: StructureType,
pub p_next: *mut c_void,
pub workgroup_memory_explicit_layout: Bool32,
pub workgroup_memory_explicit_layout_scalar_block_layout: Bool32,
pub workgroup_memory_explicit_layout8_bit_access: Bool32,
pub workgroup_memory_explicit_layout16_bit_access: Bool32,
}
impl ::std::default::Default for PhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR {
fn default() -> PhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR {
PhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR {
s_type: StructureType::PHYSICAL_DEVICE_WORKGROUP_MEMORY_EXPLICIT_LAYOUT_FEATURES_KHR,
p_next: ::std::ptr::null_mut(),
workgroup_memory_explicit_layout: Bool32::default(),
workgroup_memory_explicit_layout_scalar_block_layout: Bool32::default(),
workgroup_memory_explicit_layout8_bit_access: Bool32::default(),
workgroup_memory_explicit_layout16_bit_access: Bool32::default(),
}
}
}
impl PhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR {
pub fn builder<'a>() -> PhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHRBuilder<'a> {
PhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHRBuilder {
inner: PhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR::default(),
marker: ::std::marker::PhantomData,
}
}
}
#[repr(transparent)]
pub struct PhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHRBuilder<'a> {
inner: PhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR,
marker: ::std::marker::PhantomData<&'a ()>,
}
unsafe impl ExtendsDeviceCreateInfo
for PhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHRBuilder<'_>
{
}
unsafe impl ExtendsDeviceCreateInfo for PhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR {}
impl<'a> ::std::ops::Deref for PhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHRBuilder<'a> {
type Target = PhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR;
fn deref(&self) -> &Self::Target {
&self.inner
}
}
impl<'a> ::std::ops::DerefMut
for PhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHRBuilder<'a>
{
fn deref_mut(&mut self) -> &mut Self::Target {
&mut self.inner
}
}
impl<'a> PhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHRBuilder<'a> {
pub fn workgroup_memory_explicit_layout(
mut self,
workgroup_memory_explicit_layout: bool,
) -> PhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHRBuilder<'a> {
self.inner.workgroup_memory_explicit_layout = workgroup_memory_explicit_layout.into();
self
}
pub fn workgroup_memory_explicit_layout_scalar_block_layout(
mut self,
workgroup_memory_explicit_layout_scalar_block_layout: bool,
) -> PhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHRBuilder<'a> {
self.inner
.workgroup_memory_explicit_layout_scalar_block_layout =
workgroup_memory_explicit_layout_scalar_block_layout.into();
self
}
pub fn workgroup_memory_explicit_layout8_bit_access(
mut self,
workgroup_memory_explicit_layout8_bit_access: bool,
) -> PhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHRBuilder<'a> {
self.inner.workgroup_memory_explicit_layout8_bit_access =
workgroup_memory_explicit_layout8_bit_access.into();
self
}
pub fn workgroup_memory_explicit_layout16_bit_access(
mut self,
workgroup_memory_explicit_layout16_bit_access: bool,
) -> PhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHRBuilder<'a> {
self.inner.workgroup_memory_explicit_layout16_bit_access =
workgroup_memory_explicit_layout16_bit_access.into();
self
}
#[doc = r" Calling build will **discard** all the lifetime information. Only call this if"]
#[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"]
#[doc = r" so references to builders can be passed directly to Vulkan functions."]
pub fn build(self) -> PhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR {
self.inner
}
}
#[repr(C)]
#[derive(Copy, Clone, Debug)]
#[doc = "<https://www.khronos.org/registry/vulkan/specs/1.2-extensions/man/html/VkPhysicalDevicePortabilitySubsetFeaturesKHR.html>"]
pub struct PhysicalDevicePortabilitySubsetFeaturesKHR {
pub s_type: StructureType,
Expand Down
Loading

0 comments on commit 6b4e6c8

Please sign in to comment.