Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Vulkan-Headers to 1.3.254 #760

Merged
merged 4 commits into from
Jun 16, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

- Added `Handle::is_null()` to allow checking if a handle is a `NULL` value (#694)
- Allow building `Entry`/`Instance`/`Device` from handle+fns (see their `from_parts_1_x()` associated functions) (#748)
- Update Vulkan-Headers to 1.3.252 (#760)

### Changed

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.251"
version = "0.37.0+1.3.252"
authors = [
"Maik Klein <[email protected]>",
"Benjamin Saunders <[email protected]>",
Expand Down
3 changes: 3 additions & 0 deletions ash/src/vk/const_debugs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5820,6 +5820,9 @@ impl fmt::Debug for StructureType {
Self::IMAGE_VIEW_SAMPLE_WEIGHT_CREATE_INFO_QCOM => {
Some("IMAGE_VIEW_SAMPLE_WEIGHT_CREATE_INFO_QCOM")
}
Self::EXTERNAL_MEMORY_ACQUIRE_UNMODIFIED_EXT => {
Some("EXTERNAL_MEMORY_ACQUIRE_UNMODIFIED_EXT")
}
Self::PHYSICAL_DEVICE_EXTENDED_DYNAMIC_STATE_3_FEATURES_EXT => {
Some("PHYSICAL_DEVICE_EXTENDED_DYNAMIC_STATE_3_FEATURES_EXT")
}
Expand Down
67 changes: 66 additions & 1 deletion ash/src/vk/definitions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ 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);
#[doc = "<https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/VK_HEADER_VERSION.html>"]
pub const HEADER_VERSION: u32 = 251;
pub const HEADER_VERSION: u32 = 252;
#[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 @@ -2263,6 +2263,7 @@ impl ::std::default::Default for BufferMemoryBarrier<'_> {
unsafe impl<'a> TaggedStructure for BufferMemoryBarrier<'a> {
const STRUCTURE_TYPE: StructureType = StructureType::BUFFER_MEMORY_BARRIER;
}
pub unsafe trait ExtendsBufferMemoryBarrier {}
impl<'a> BufferMemoryBarrier<'a> {
#[inline]
pub fn src_access_mask(mut self, src_access_mask: AccessFlags) -> Self {
Expand Down Expand Up @@ -2299,6 +2300,20 @@ impl<'a> BufferMemoryBarrier<'a> {
self.size = size;
self
}
#[doc = r" Prepends the given extension struct between the root and the first pointer. This"]
#[doc = r" method only exists on structs that can be passed to a function directly. Only"]
#[doc = r" valid extension structs can be pushed into the chain."]
#[doc = r" If the chain looks like `A -> B -> C`, and you call `x.push_next(&mut D)`, then the"]
#[doc = r" chain will look like `A -> D -> B -> C`."]
pub fn push_next<T: ExtendsBufferMemoryBarrier>(mut self, next: &'a mut T) -> Self {
unsafe {
let next_ptr = <*const T>::cast(next);
let last_next = ptr_chain_iter(next).last().unwrap();
(*last_next).p_next = self.p_next as _;
self.p_next = next_ptr;
}
self
}
}
#[repr(C)]
#[cfg_attr(feature = "debug", derive(Debug))]
Expand Down Expand Up @@ -35316,6 +35331,7 @@ impl ::std::default::Default for BufferMemoryBarrier2<'_> {
unsafe impl<'a> TaggedStructure for BufferMemoryBarrier2<'a> {
const STRUCTURE_TYPE: StructureType = StructureType::BUFFER_MEMORY_BARRIER_2;
}
pub unsafe trait ExtendsBufferMemoryBarrier2 {}
impl<'a> BufferMemoryBarrier2<'a> {
#[inline]
pub fn src_stage_mask(mut self, src_stage_mask: PipelineStageFlags2) -> Self {
Expand Down Expand Up @@ -35362,6 +35378,20 @@ impl<'a> BufferMemoryBarrier2<'a> {
self.size = size;
self
}
#[doc = r" Prepends the given extension struct between the root and the first pointer. This"]
#[doc = r" method only exists on structs that can be passed to a function directly. Only"]
#[doc = r" valid extension structs can be pushed into the chain."]
#[doc = r" If the chain looks like `A -> B -> C`, and you call `x.push_next(&mut D)`, then the"]
#[doc = r" chain will look like `A -> D -> B -> C`."]
pub fn push_next<T: ExtendsBufferMemoryBarrier2>(mut self, next: &'a mut T) -> Self {
unsafe {
let next_ptr = <*const T>::cast(next);
let last_next = ptr_chain_iter(next).last().unwrap();
(*last_next).p_next = self.p_next as _;
self.p_next = next_ptr;
}
self
}
}
#[repr(C)]
#[cfg_attr(feature = "debug", derive(Debug))]
Expand Down Expand Up @@ -44737,6 +44767,41 @@ impl<'a> PhysicalDeviceShaderEarlyAndLateFragmentTestsFeaturesAMD<'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/VkExternalMemoryAcquireUnmodifiedEXT.html>"]
pub struct ExternalMemoryAcquireUnmodifiedEXT<'a> {
pub s_type: StructureType,
pub p_next: *const c_void,
pub acquire_unmodified_memory: Bool32,
pub _marker: PhantomData<&'a ()>,
}
impl ::std::default::Default for ExternalMemoryAcquireUnmodifiedEXT<'_> {
#[inline]
fn default() -> Self {
Self {
s_type: Self::STRUCTURE_TYPE,
p_next: ::std::ptr::null(),
acquire_unmodified_memory: Bool32::default(),
_marker: PhantomData,
}
}
}
unsafe impl<'a> TaggedStructure for ExternalMemoryAcquireUnmodifiedEXT<'a> {
const STRUCTURE_TYPE: StructureType = StructureType::EXTERNAL_MEMORY_ACQUIRE_UNMODIFIED_EXT;
}
unsafe impl ExtendsBufferMemoryBarrier for ExternalMemoryAcquireUnmodifiedEXT<'_> {}
unsafe impl ExtendsBufferMemoryBarrier2 for ExternalMemoryAcquireUnmodifiedEXT<'_> {}
unsafe impl ExtendsImageMemoryBarrier for ExternalMemoryAcquireUnmodifiedEXT<'_> {}
unsafe impl ExtendsImageMemoryBarrier2 for ExternalMemoryAcquireUnmodifiedEXT<'_> {}
impl<'a> ExternalMemoryAcquireUnmodifiedEXT<'a> {
#[inline]
pub fn acquire_unmodified_memory(mut self, acquire_unmodified_memory: bool) -> Self {
self.acquire_unmodified_memory = acquire_unmodified_memory.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/VkExportMetalObjectCreateInfoEXT.html>"]
pub struct ExportMetalObjectCreateInfoEXT<'a> {
pub s_type: StructureType,
Expand Down
14 changes: 14 additions & 0 deletions ash/src/vk/extensions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17854,6 +17854,20 @@ impl StructureType {
pub const PHYSICAL_DEVICE_IMAGE_PROCESSING_PROPERTIES_QCOM: Self = Self(1_000_440_001);
pub const IMAGE_VIEW_SAMPLE_WEIGHT_CREATE_INFO_QCOM: Self = Self(1_000_440_002);
}
impl ExtExternalMemoryAcquireUnmodifiedFn {
pub const NAME: &'static ::std::ffi::CStr = unsafe {
::std::ffi::CStr::from_bytes_with_nul_unchecked(
b"VK_EXT_external_memory_acquire_unmodified\0",
)
};
pub const SPEC_VERSION: u32 = 1u32;
}
#[derive(Clone)]
pub struct ExtExternalMemoryAcquireUnmodifiedFn;
#[doc = "Generated from 'VK_EXT_external_memory_acquire_unmodified'"]
impl StructureType {
pub const EXTERNAL_MEMORY_ACQUIRE_UNMODIFIED_EXT: Self = Self(1_000_453_000);
}
impl ExtExtendedDynamicState3Fn {
pub const NAME: &'static ::std::ffi::CStr = unsafe {
::std::ffi::CStr::from_bytes_with_nul_unchecked(b"VK_EXT_extended_dynamic_state3\0")
Expand Down