Skip to content

Commit

Permalink
Update Vulkan-Headers to 1.3.231
Browse files Browse the repository at this point in the history
  • Loading branch information
MarijnS95 committed Oct 13, 2022
1 parent f100457 commit 8cabc04
Show file tree
Hide file tree
Showing 6 changed files with 127 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Changelog.md
Expand Up @@ -16,7 +16,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Added

- Added `VK_EXT_image_drm_format_modifier` device extension (#603)
- Update Vulkan-Headers to 1.3.230 (#605, #608, #619, #655, #667)
- Update Vulkan-Headers to 1.3.231 (#605, #608, #619, #655, #667)
- Added `const STRUCTURE_TYPE` to all Vulkan structures for matching with `match_struct!` macro (#614)
- Added `VK_EXT_sample_locations` device extension (#616)
- Added `VK_NV_coverage_reduction_mode` device extension (#617)
Expand Down
2 changes: 1 addition & 1 deletion ash/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "ash"
version = "0.37.0+1.3.230"
version = "0.37.0+1.3.231"
authors = ["maik klein <maikklein@googlemail.com>"]
description = "Vulkan bindings for Rust"
license = "MIT OR Apache-2.0"
Expand Down
6 changes: 6 additions & 0 deletions ash/src/vk/const_debugs.rs
Expand Up @@ -5714,6 +5714,12 @@ impl fmt::Debug for StructureType {
Self::MUTABLE_DESCRIPTOR_TYPE_CREATE_INFO_EXT => {
Some("MUTABLE_DESCRIPTOR_TYPE_CREATE_INFO_EXT")
}
Self::PHYSICAL_DEVICE_SHADER_CORE_BUILTINS_FEATURES_ARM => {
Some("PHYSICAL_DEVICE_SHADER_CORE_BUILTINS_FEATURES_ARM")
}
Self::PHYSICAL_DEVICE_SHADER_CORE_BUILTINS_PROPERTIES_ARM => {
Some("PHYSICAL_DEVICE_SHADER_CORE_BUILTINS_PROPERTIES_ARM")
}
Self::PHYSICAL_DEVICE_SUBGROUP_PROPERTIES => {
Some("PHYSICAL_DEVICE_SUBGROUP_PROPERTIES")
}
Expand Down
76 changes: 75 additions & 1 deletion ash/src/vk/definitions.rs
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 = 230u32;
pub const HEADER_VERSION: u32 = 231u32;
#[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 @@ -45189,3 +45189,77 @@ impl DeviceFaultVendorBinaryHeaderVersionOneEXT {
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/VkPhysicalDeviceShaderCoreBuiltinsPropertiesARM.html>"]
pub struct PhysicalDeviceShaderCoreBuiltinsPropertiesARM<'a> {
pub s_type: StructureType,
pub p_next: *mut c_void,
pub shader_core_count: u32,
pub shader_warps_per_core: u32,
pub _marker: PhantomData<&'a ()>,
}
impl ::std::default::Default for PhysicalDeviceShaderCoreBuiltinsPropertiesARM<'_> {
#[inline]
fn default() -> Self {
Self {
s_type: Self::STRUCTURE_TYPE,
p_next: ::std::ptr::null_mut(),
shader_core_count: u32::default(),
shader_warps_per_core: u32::default(),
_marker: PhantomData,
}
}
}
unsafe impl<'a> TaggedStructure for PhysicalDeviceShaderCoreBuiltinsPropertiesARM<'a> {
const STRUCTURE_TYPE: StructureType =
StructureType::PHYSICAL_DEVICE_SHADER_CORE_BUILTINS_PROPERTIES_ARM;
}
unsafe impl ExtendsPhysicalDeviceProperties2 for PhysicalDeviceShaderCoreBuiltinsPropertiesARM<'_> {}
impl<'a> PhysicalDeviceShaderCoreBuiltinsPropertiesARM<'a> {
#[inline]
pub fn shader_core_count(mut self, shader_core_count: u32) -> Self {
self.shader_core_count = shader_core_count;
self
}
#[inline]
pub fn shader_warps_per_core(mut self, shader_warps_per_core: u32) -> Self {
self.shader_warps_per_core = shader_warps_per_core;
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/VkPhysicalDeviceShaderCoreBuiltinsFeaturesARM.html>"]
pub struct PhysicalDeviceShaderCoreBuiltinsFeaturesARM<'a> {
pub s_type: StructureType,
pub p_next: *mut c_void,
pub shader_core_builtins: Bool32,
pub _marker: PhantomData<&'a ()>,
}
impl ::std::default::Default for PhysicalDeviceShaderCoreBuiltinsFeaturesARM<'_> {
#[inline]
fn default() -> Self {
Self {
s_type: Self::STRUCTURE_TYPE,
p_next: ::std::ptr::null_mut(),
shader_core_builtins: Bool32::default(),
_marker: PhantomData,
}
}
}
unsafe impl<'a> TaggedStructure for PhysicalDeviceShaderCoreBuiltinsFeaturesARM<'a> {
const STRUCTURE_TYPE: StructureType =
StructureType::PHYSICAL_DEVICE_SHADER_CORE_BUILTINS_FEATURES_ARM;
}
unsafe impl ExtendsPhysicalDeviceFeatures2 for PhysicalDeviceShaderCoreBuiltinsFeaturesARM<'_> {}
unsafe impl ExtendsDeviceCreateInfo for PhysicalDeviceShaderCoreBuiltinsFeaturesARM<'_> {}
impl<'a> PhysicalDeviceShaderCoreBuiltinsFeaturesARM<'a> {
#[inline]
pub fn shader_core_builtins(mut self, shader_core_builtins: bool) -> Self {
self.shader_core_builtins = shader_core_builtins.into();
self
}
}
43 changes: 43 additions & 0 deletions ash/src/vk/extensions.rs
Expand Up @@ -24576,3 +24576,46 @@ impl ExtExtension497Fn {
Self {}
}
}
impl ArmShaderCoreBuiltinsFn {
#[inline]
pub const fn name() -> &'static ::std::ffi::CStr {
unsafe { ::std::ffi::CStr::from_bytes_with_nul_unchecked(b"VK_ARM_shader_core_builtins\0") }
}
pub const SPEC_VERSION: u32 = 1u32;
}
#[derive(Clone)]
pub struct ArmShaderCoreBuiltinsFn {}
unsafe impl Send for ArmShaderCoreBuiltinsFn {}
unsafe impl Sync for ArmShaderCoreBuiltinsFn {}
impl ArmShaderCoreBuiltinsFn {
pub fn load<F>(mut _f: F) -> Self
where
F: FnMut(&::std::ffi::CStr) -> *const c_void,
{
Self {}
}
}
#[doc = "Generated from 'VK_ARM_shader_core_builtins'"]
impl StructureType {
pub const PHYSICAL_DEVICE_SHADER_CORE_BUILTINS_FEATURES_ARM: Self = Self(1_000_497_000);
pub const PHYSICAL_DEVICE_SHADER_CORE_BUILTINS_PROPERTIES_ARM: Self = Self(1_000_497_001);
}
impl ExtExtension499Fn {
#[inline]
pub const fn name() -> &'static ::std::ffi::CStr {
unsafe { ::std::ffi::CStr::from_bytes_with_nul_unchecked(b"VK_EXT_extension_499\0") }
}
pub const SPEC_VERSION: u32 = 0u32;
}
#[derive(Clone)]
pub struct ExtExtension499Fn {}
unsafe impl Send for ExtExtension499Fn {}
unsafe impl Sync for ExtExtension499Fn {}
impl ExtExtension499Fn {
pub fn load<F>(mut _f: F) -> Self
where
F: FnMut(&::std::ffi::CStr) -> *const c_void,
{
Self {}
}
}

0 comments on commit 8cabc04

Please sign in to comment.