Skip to content

Commit 82e45e7

Browse files
committed
extensions/khr: add VK_KHR_video_decode_queue
1 parent ca9e4de commit 82e45e7

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

ash/src/extensions/khr/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ pub mod surface;
4040
pub mod swapchain;
4141
pub mod synchronization2;
4242
pub mod timeline_semaphore;
43+
pub mod video_decode_queue;
4344
pub mod video_queue;
4445
pub mod wayland_surface;
4546
pub mod win32_surface;
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
//! <https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/VK_KHR_video_decode_queue.html>
2+
3+
use crate::vk;
4+
5+
impl crate::khr::video_decode_queue::Device {
6+
#[inline]
7+
/// <https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/vkCmdDecodeVideoKHR.html>
8+
pub unsafe fn cmd_decode_video(
9+
&self,
10+
command_buffer: vk::CommandBuffer,
11+
decode_info: &vk::VideoDecodeInfoKHR<'_>,
12+
) {
13+
(self.fp.cmd_decode_video_khr)(command_buffer, decode_info);
14+
}
15+
}

0 commit comments

Comments
 (0)