Skip to content

Commit cfb918f

Browse files
committed
Update Vulkan-Headers to 1.4.318
1 parent 96becc8 commit cfb918f

20 files changed

+26514
-12357
lines changed

Cargo.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,7 @@ members = [
99
"generator",
1010
"generator-rewrite",
1111
]
12+
13+
# [patch.crates-io]
14+
# # https://github.com/krolli/vk-parse/pull/36
15+
# vk-parse = { git = "https://github.com/krolli/vk-parse", rev = "dfe8863" }

Changelog.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1010
### Added
1111

1212
- Added `push()` method to all root structs to insert a single extension-struct in the pointer chain. (#909)
13-
- Update Vulkan-Headers to 1.3.296 (#910)
13+
- Update Vulkan-Headers to 1.4.318 (#910, #951)
1414
- Added `VK_KHR_get_display_properties2` instance extension (#932)
1515
- Added `VK_EXT_metal_objects` device extension (#942)
1616
- Added `VK_AMD_anti_lag` device extension (#943)

ash/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "ash"
3-
version = "0.38.0+1.3.296"
3+
version = "0.38.0+1.4.318"
44
authors = [
55
"Maik Klein <[email protected]>",
66
"Benjamin Saunders <[email protected]>",

ash/src/extensions/amd/buffer_marker.rs

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,23 @@ impl crate::amd::buffer_marker::Device {
2121
marker,
2222
)
2323
}
24+
25+
/// <https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/vkCmdWriteBufferMarker2AMD.html>
26+
#[inline]
27+
pub unsafe fn cmd_write_buffer_marker2(
28+
&self,
29+
command_buffer: vk::CommandBuffer,
30+
stage: vk::PipelineStageFlags2,
31+
dst_buffer: vk::Buffer,
32+
dst_offset: vk::DeviceSize,
33+
marker: u32,
34+
) {
35+
(self.fp.cmd_write_buffer_marker2_amd)(
36+
command_buffer,
37+
stage,
38+
dst_buffer,
39+
dst_offset,
40+
marker,
41+
)
42+
}
2443
}

ash/src/extensions/amdx/shader_enqueue.rs

Lines changed: 24 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,16 @@ impl crate::amdx::shader_enqueue::Device {
7272
pub unsafe fn cmd_initialize_graph_scratch_memory(
7373
&self,
7474
command_buffer: vk::CommandBuffer,
75+
execution_graph: vk::Pipeline,
7576
scratch: vk::DeviceAddress,
77+
scratch_size: vk::DeviceSize,
7678
) {
77-
(self.fp.cmd_initialize_graph_scratch_memory_amdx)(command_buffer, scratch)
79+
(self.fp.cmd_initialize_graph_scratch_memory_amdx)(
80+
command_buffer,
81+
execution_graph,
82+
scratch,
83+
scratch_size,
84+
)
7885
}
7986

8087
/// <https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/vkCmdDispatchGraphAMDX.html>
@@ -83,9 +90,10 @@ impl crate::amdx::shader_enqueue::Device {
8390
&self,
8491
command_buffer: vk::CommandBuffer,
8592
scratch: vk::DeviceAddress,
93+
scratch_size: vk::DeviceSize,
8694
count_info: &vk::DispatchGraphCountInfoAMDX,
8795
) {
88-
(self.fp.cmd_dispatch_graph_amdx)(command_buffer, scratch, count_info)
96+
(self.fp.cmd_dispatch_graph_amdx)(command_buffer, scratch, scratch_size, count_info)
8997
}
9098

9199
/// <https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/vkCmdDispatchGraphIndirectAMDX.html>
@@ -94,9 +102,15 @@ impl crate::amdx::shader_enqueue::Device {
94102
&self,
95103
command_buffer: vk::CommandBuffer,
96104
scratch: vk::DeviceAddress,
105+
scratch_size: vk::DeviceSize,
97106
count_info: &vk::DispatchGraphCountInfoAMDX,
98107
) {
99-
(self.fp.cmd_dispatch_graph_indirect_amdx)(command_buffer, scratch, count_info)
108+
(self.fp.cmd_dispatch_graph_indirect_amdx)(
109+
command_buffer,
110+
scratch,
111+
scratch_size,
112+
count_info,
113+
)
100114
}
101115

102116
/// <https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/vkCmdDispatchGraphIndirectCountAMDX.html>
@@ -105,8 +119,14 @@ impl crate::amdx::shader_enqueue::Device {
105119
&self,
106120
command_buffer: vk::CommandBuffer,
107121
scratch: vk::DeviceAddress,
122+
scratch_size: vk::DeviceSize,
108123
count_info: vk::DeviceAddress,
109124
) {
110-
(self.fp.cmd_dispatch_graph_indirect_count_amdx)(command_buffer, scratch, count_info)
125+
(self.fp.cmd_dispatch_graph_indirect_count_amdx)(
126+
command_buffer,
127+
scratch,
128+
scratch_size,
129+
count_info,
130+
)
111131
}
112132
}

ash/src/extensions/nv/device_diagnostic_checkpoints.rs

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,27 @@ impl crate::nv::device_diagnostic_checkpoints::Device {
3838
(self.fp.get_queue_checkpoint_data_nv)(queue, &mut count, out.as_mut_ptr());
3939
assert_eq!(count as usize, out.len());
4040
}
41+
42+
/// Retrieve the number of elements to pass to [`get_queue_checkpoint_data()`][Self::get_queue_checkpoint_data2()]
43+
#[inline]
44+
pub unsafe fn get_queue_checkpoint_data2_len(&self, queue: vk::Queue) -> usize {
45+
let mut count = mem::MaybeUninit::uninit();
46+
(self.fp.get_queue_checkpoint_data2_nv)(queue, count.as_mut_ptr(), ptr::null_mut());
47+
count.assume_init() as usize
48+
}
49+
50+
/// <https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/vkGetQueueCheckpointData2NV.html>
51+
///
52+
/// Call [`get_queue_checkpoint_data2_len()`][Self::get_queue_checkpoint_data2_len()] to query the number of elements to pass to `out`.
53+
/// Be sure to [`Default::default()`]-initialize these elements and optionally set their `p_next` pointer.
54+
#[inline]
55+
pub unsafe fn get_queue_checkpoint_data2(
56+
&self,
57+
queue: vk::Queue,
58+
out: &mut [vk::CheckpointData2NV<'_>],
59+
) {
60+
let mut count = out.len() as u32;
61+
(self.fp.get_queue_checkpoint_data2_nv)(queue, &mut count, out.as_mut_ptr());
62+
assert_eq!(count as usize, out.len());
63+
}
4164
}

0 commit comments

Comments
 (0)