Skip to content

Commit

Permalink
Update Vulkan-Headers to 1.3.215
Browse files Browse the repository at this point in the history
  • Loading branch information
MarijnS95 committed Jun 2, 2022
1 parent 123aa9b commit 78acf4b
Show file tree
Hide file tree
Showing 7 changed files with 126 additions and 58 deletions.
2 changes: 1 addition & 1 deletion Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

- Added `VK_NV_coverage_reduction_mode` device extension (#617)
- Added `VK_EXT_sample_locations` device extension (#616)
- Update Vulkan-Headers to 1.3.214 (#605, #608, #619)
- Update Vulkan-Headers to 1.3.215 (#605, #608, #619)
- Added `VK_EXT_image_drm_format_modifier` device extension (#603)

### 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.214"
version = "0.37.0+1.3.215"
authors = ["maik klein <maikklein@googlemail.com>"]
description = "Vulkan bindings for Rust"
license = "MIT"
Expand Down
2 changes: 2 additions & 0 deletions ash/src/vk/aliases.rs
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,8 @@ pub type PhysicalDeviceShaderAtomicInt64FeaturesKHR<'a> =
pub type PhysicalDeviceDepthStencilResolvePropertiesKHR<'a> =
PhysicalDeviceDepthStencilResolveProperties<'a>;
pub type SubpassDescriptionDepthStencilResolveKHR<'a> = SubpassDescriptionDepthStencilResolve<'a>;
pub type PhysicalDeviceFragmentShaderBarycentricFeaturesNV<'a> =
PhysicalDeviceFragmentShaderBarycentricFeaturesKHR<'a>;
pub type ImageStencilUsageCreateInfoEXT<'a> = ImageStencilUsageCreateInfo<'a>;
pub type PhysicalDeviceScalarBlockLayoutFeaturesEXT<'a> =
PhysicalDeviceScalarBlockLayoutFeatures<'a>;
Expand Down
13 changes: 8 additions & 5 deletions ash/src/vk/const_debugs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4648,9 +4648,6 @@ impl fmt::Debug for StructureType {
Self::PHYSICAL_DEVICE_MESH_SHADER_PROPERTIES_NV => {
Some("PHYSICAL_DEVICE_MESH_SHADER_PROPERTIES_NV")
}
Self::PHYSICAL_DEVICE_FRAGMENT_SHADER_BARYCENTRIC_FEATURES_NV => {
Some("PHYSICAL_DEVICE_FRAGMENT_SHADER_BARYCENTRIC_FEATURES_NV")
}
Self::PHYSICAL_DEVICE_SHADER_IMAGE_FOOTPRINT_FEATURES_NV => {
Some("PHYSICAL_DEVICE_SHADER_IMAGE_FOOTPRINT_FEATURES_NV")
}
Expand Down Expand Up @@ -4910,8 +4907,14 @@ impl fmt::Debug for StructureType {
Self::GRAPHICS_PIPELINE_LIBRARY_CREATE_INFO_EXT => {
Some("GRAPHICS_PIPELINE_LIBRARY_CREATE_INFO_EXT")
}
Self::PHYSICAL_DEVICE_SHADER_EARLY_AND_LATE_FRAGMENT_TESTS_FEATURES_EXT => {
Some("PHYSICAL_DEVICE_SHADER_EARLY_AND_LATE_FRAGMENT_TESTS_FEATURES_EXT")
Self::PHYSICAL_DEVICE_SHADER_EARLY_AND_LATE_FRAGMENT_TESTS_FEATURES_AMD => {
Some("PHYSICAL_DEVICE_SHADER_EARLY_AND_LATE_FRAGMENT_TESTS_FEATURES_AMD")
}
Self::PHYSICAL_DEVICE_FRAGMENT_SHADER_BARYCENTRIC_FEATURES_KHR => {
Some("PHYSICAL_DEVICE_FRAGMENT_SHADER_BARYCENTRIC_FEATURES_KHR")
}
Self::PHYSICAL_DEVICE_FRAGMENT_SHADER_BARYCENTRIC_PROPERTIES_KHR => {
Some("PHYSICAL_DEVICE_FRAGMENT_SHADER_BARYCENTRIC_PROPERTIES_KHR")
}
Self::PHYSICAL_DEVICE_SHADER_SUBGROUP_UNIFORM_CONTROL_FLOW_FEATURES_KHR => {
Some("PHYSICAL_DEVICE_SHADER_SUBGROUP_UNIFORM_CONTROL_FLOW_FEATURES_KHR")
Expand Down
118 changes: 77 additions & 41 deletions ash/src/vk/definitions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ pub const API_VERSION_1_1: u32 = make_api_version(0, 1, 1, 0);
pub const API_VERSION_1_2: u32 = make_api_version(0, 1, 2, 0);
#[doc = "<https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/VK_API_VERSION_1_3.html>"]
pub const API_VERSION_1_3: u32 = make_api_version(0, 1, 3, 0);
pub const HEADER_VERSION: u32 = 214u32;
pub const HEADER_VERSION: u32 = 215u32;
#[doc = "<https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/VK_HEADER_VERSION_COMPLETE.html>"]
pub const HEADER_VERSION_COMPLETE: u32 = make_api_version(0, 1, 3, HEADER_VERSION);
#[doc = "<https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/VkSampleMask.html>"]
Expand Down Expand Up @@ -20584,39 +20584,6 @@ impl<'a> PhysicalDeviceComputeShaderDerivativesFeaturesNV<'a> {
#[repr(C)]
#[cfg_attr(feature = "debug", derive(Debug))]
#[derive(Copy, Clone)]
#[doc = "<https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/VkPhysicalDeviceFragmentShaderBarycentricFeaturesNV.html>"]
pub struct PhysicalDeviceFragmentShaderBarycentricFeaturesNV<'a> {
pub s_type: StructureType,
pub p_next: *mut c_void,
pub fragment_shader_barycentric: Bool32,
pub _marker: PhantomData<&'a ()>,
}
impl ::std::default::Default for PhysicalDeviceFragmentShaderBarycentricFeaturesNV<'_> {
#[inline]
fn default() -> Self {
Self {
s_type: StructureType::PHYSICAL_DEVICE_FRAGMENT_SHADER_BARYCENTRIC_FEATURES_NV,
p_next: ::std::ptr::null_mut(),
fragment_shader_barycentric: Bool32::default(),
_marker: PhantomData,
}
}
}
unsafe impl ExtendsPhysicalDeviceFeatures2
for PhysicalDeviceFragmentShaderBarycentricFeaturesNV<'_>
{
}
unsafe impl ExtendsDeviceCreateInfo for PhysicalDeviceFragmentShaderBarycentricFeaturesNV<'_> {}
impl<'a> PhysicalDeviceFragmentShaderBarycentricFeaturesNV<'a> {
#[inline]
pub fn fragment_shader_barycentric(mut self, fragment_shader_barycentric: bool) -> Self {
self.fragment_shader_barycentric = fragment_shader_barycentric.into();
self
}
}
#[repr(C)]
#[cfg_attr(feature = "debug", derive(Debug))]
#[derive(Copy, Clone)]
#[doc = "<https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/VkPhysicalDeviceShaderImageFootprintFeaturesNV.html>"]
pub struct PhysicalDeviceShaderImageFootprintFeaturesNV<'a> {
pub s_type: StructureType,
Expand Down Expand Up @@ -36715,6 +36682,75 @@ impl<'a> PhysicalDeviceDrmPropertiesEXT<'a> {
#[repr(C)]
#[cfg_attr(feature = "debug", derive(Debug))]
#[derive(Copy, Clone)]
#[doc = "<https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/VkPhysicalDeviceFragmentShaderBarycentricFeaturesKHR.html>"]
pub struct PhysicalDeviceFragmentShaderBarycentricFeaturesKHR<'a> {
pub s_type: StructureType,
pub p_next: *mut c_void,
pub fragment_shader_barycentric: Bool32,
pub _marker: PhantomData<&'a ()>,
}
impl ::std::default::Default for PhysicalDeviceFragmentShaderBarycentricFeaturesKHR<'_> {
#[inline]
fn default() -> Self {
Self {
s_type: StructureType::PHYSICAL_DEVICE_FRAGMENT_SHADER_BARYCENTRIC_FEATURES_KHR,
p_next: ::std::ptr::null_mut(),
fragment_shader_barycentric: Bool32::default(),
_marker: PhantomData,
}
}
}
unsafe impl ExtendsPhysicalDeviceFeatures2
for PhysicalDeviceFragmentShaderBarycentricFeaturesKHR<'_>
{
}
unsafe impl ExtendsDeviceCreateInfo for PhysicalDeviceFragmentShaderBarycentricFeaturesKHR<'_> {}
impl<'a> PhysicalDeviceFragmentShaderBarycentricFeaturesKHR<'a> {
#[inline]
pub fn fragment_shader_barycentric(mut self, fragment_shader_barycentric: bool) -> Self {
self.fragment_shader_barycentric = fragment_shader_barycentric.into();
self
}
}
#[repr(C)]
#[cfg_attr(feature = "debug", derive(Debug))]
#[derive(Copy, Clone)]
#[doc = "<https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/VkPhysicalDeviceFragmentShaderBarycentricPropertiesKHR.html>"]
pub struct PhysicalDeviceFragmentShaderBarycentricPropertiesKHR<'a> {
pub s_type: StructureType,
pub p_next: *mut c_void,
pub tri_strip_vertex_order_independent_of_provoking_vertex: Bool32,
pub _marker: PhantomData<&'a ()>,
}
impl ::std::default::Default for PhysicalDeviceFragmentShaderBarycentricPropertiesKHR<'_> {
#[inline]
fn default() -> Self {
Self {
s_type: StructureType::PHYSICAL_DEVICE_FRAGMENT_SHADER_BARYCENTRIC_PROPERTIES_KHR,
p_next: ::std::ptr::null_mut(),
tri_strip_vertex_order_independent_of_provoking_vertex: Bool32::default(),
_marker: PhantomData,
}
}
}
unsafe impl ExtendsPhysicalDeviceProperties2
for PhysicalDeviceFragmentShaderBarycentricPropertiesKHR<'_>
{
}
impl<'a> PhysicalDeviceFragmentShaderBarycentricPropertiesKHR<'a> {
#[inline]
pub fn tri_strip_vertex_order_independent_of_provoking_vertex(
mut self,
tri_strip_vertex_order_independent_of_provoking_vertex: bool,
) -> Self {
self.tri_strip_vertex_order_independent_of_provoking_vertex =
tri_strip_vertex_order_independent_of_provoking_vertex.into();
self
}
}
#[repr(C)]
#[cfg_attr(feature = "debug", derive(Debug))]
#[derive(Copy, Clone)]
#[doc = "<https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/VkPhysicalDeviceRayTracingMotionBlurFeaturesNV.html>"]
pub struct PhysicalDeviceRayTracingMotionBlurFeaturesNV<'a> {
pub s_type: StructureType,
Expand Down Expand Up @@ -39089,34 +39125,34 @@ impl<'a> PhysicalDevicePipelinePropertiesFeaturesEXT<'a> {
#[repr(C)]
#[cfg_attr(feature = "debug", derive(Debug))]
#[derive(Copy, Clone)]
#[doc = "<https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/VkPhysicalDeviceShaderEarlyAndLateFragmentTestsFeaturesEXT.html>"]
pub struct PhysicalDeviceShaderEarlyAndLateFragmentTestsFeaturesEXT<'a> {
#[doc = "<https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/VkPhysicalDeviceShaderEarlyAndLateFragmentTestsFeaturesAMD.html>"]
pub struct PhysicalDeviceShaderEarlyAndLateFragmentTestsFeaturesAMD<'a> {
pub s_type: StructureType,
pub p_next: *mut c_void,
pub shader_early_and_late_fragment_tests: Bool32,
pub _marker: PhantomData<&'a ()>,
}
impl ::std::default::Default for PhysicalDeviceShaderEarlyAndLateFragmentTestsFeaturesEXT<'_> {
impl ::std::default::Default for PhysicalDeviceShaderEarlyAndLateFragmentTestsFeaturesAMD<'_> {
#[inline]
fn default() -> Self {
Self {
s_type:
StructureType::PHYSICAL_DEVICE_SHADER_EARLY_AND_LATE_FRAGMENT_TESTS_FEATURES_EXT,
StructureType::PHYSICAL_DEVICE_SHADER_EARLY_AND_LATE_FRAGMENT_TESTS_FEATURES_AMD,
p_next: ::std::ptr::null_mut(),
shader_early_and_late_fragment_tests: Bool32::default(),
_marker: PhantomData,
}
}
}
unsafe impl ExtendsPhysicalDeviceFeatures2
for PhysicalDeviceShaderEarlyAndLateFragmentTestsFeaturesEXT<'_>
for PhysicalDeviceShaderEarlyAndLateFragmentTestsFeaturesAMD<'_>
{
}
unsafe impl ExtendsDeviceCreateInfo
for PhysicalDeviceShaderEarlyAndLateFragmentTestsFeaturesEXT<'_>
for PhysicalDeviceShaderEarlyAndLateFragmentTestsFeaturesAMD<'_>
{
}
impl<'a> PhysicalDeviceShaderEarlyAndLateFragmentTestsFeaturesEXT<'a> {
impl<'a> PhysicalDeviceShaderEarlyAndLateFragmentTestsFeaturesAMD<'a> {
#[inline]
pub fn shader_early_and_late_fragment_tests(
mut self,
Expand Down
45 changes: 36 additions & 9 deletions ash/src/vk/extensions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12024,7 +12024,8 @@ impl NvFragmentShaderBarycentricFn {
}
#[doc = "Generated from 'VK_NV_fragment_shader_barycentric'"]
impl StructureType {
pub const PHYSICAL_DEVICE_FRAGMENT_SHADER_BARYCENTRIC_FEATURES_NV: Self = Self(1_000_203_000);
pub const PHYSICAL_DEVICE_FRAGMENT_SHADER_BARYCENTRIC_FEATURES_NV: Self =
Self::PHYSICAL_DEVICE_FRAGMENT_SHADER_BARYCENTRIC_FEATURES_KHR;
}
impl NvShaderImageFootprintFn {
pub const fn name() -> &'static ::std::ffi::CStr {
Expand Down Expand Up @@ -17127,27 +17128,35 @@ impl AmdShaderEarlyAndLateFragmentTestsFn {
}
#[doc = "Generated from 'VK_AMD_shader_early_and_late_fragment_tests'"]
impl StructureType {
pub const PHYSICAL_DEVICE_SHADER_EARLY_AND_LATE_FRAGMENT_TESTS_FEATURES_EXT: Self =
pub const PHYSICAL_DEVICE_SHADER_EARLY_AND_LATE_FRAGMENT_TESTS_FEATURES_AMD: Self =
Self(1_000_321_000);
}
impl AmdExtension323Fn {
impl KhrFragmentShaderBarycentricFn {
pub const fn name() -> &'static ::std::ffi::CStr {
unsafe { ::std::ffi::CStr::from_bytes_with_nul_unchecked(b"VK_AMD_extension_323\0") }
unsafe {
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"VK_KHR_fragment_shader_barycentric\0")
}
}
pub const SPEC_VERSION: u32 = 0u32;
pub const SPEC_VERSION: u32 = 1u32;
}
#[derive(Clone)]
pub struct AmdExtension323Fn {}
unsafe impl Send for AmdExtension323Fn {}
unsafe impl Sync for AmdExtension323Fn {}
impl AmdExtension323Fn {
pub struct KhrFragmentShaderBarycentricFn {}
unsafe impl Send for KhrFragmentShaderBarycentricFn {}
unsafe impl Sync for KhrFragmentShaderBarycentricFn {}
impl KhrFragmentShaderBarycentricFn {
pub fn load<F>(mut _f: F) -> Self
where
F: FnMut(&::std::ffi::CStr) -> *const c_void,
{
Self {}
}
}
#[doc = "Generated from 'VK_KHR_fragment_shader_barycentric'"]
impl StructureType {
pub const PHYSICAL_DEVICE_FRAGMENT_SHADER_BARYCENTRIC_FEATURES_KHR: Self = Self(1_000_203_000);
pub const PHYSICAL_DEVICE_FRAGMENT_SHADER_BARYCENTRIC_PROPERTIES_KHR: Self =
Self(1_000_322_000);
}
impl KhrShaderSubgroupUniformControlFlowFn {
pub const fn name() -> &'static ::std::ffi::CStr {
unsafe {
Expand Down Expand Up @@ -21824,3 +21833,21 @@ impl ExtExtension481Fn {
Self {}
}
}
impl ExtExtension482Fn {
pub const fn name() -> &'static ::std::ffi::CStr {
unsafe { ::std::ffi::CStr::from_bytes_with_nul_unchecked(b"VK_EXT_extension_482\0") }
}
pub const SPEC_VERSION: u32 = 0u32;
}
#[derive(Clone)]
pub struct ExtExtension482Fn {}
unsafe impl Send for ExtExtension482Fn {}
unsafe impl Sync for ExtExtension482Fn {}
impl ExtExtension482Fn {
pub fn load<F>(mut _f: F) -> Self
where
F: FnMut(&::std::ffi::CStr) -> *const c_void,
{
Self {}
}
}

0 comments on commit 78acf4b

Please sign in to comment.