Skip to content

Commit

Permalink
extensions/khr: add VK_KHR_video_decode_queue
Browse files Browse the repository at this point in the history
  • Loading branch information
colinmarc committed Nov 30, 2024
1 parent ca9e4de commit 82e45e7
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions ash/src/extensions/khr/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ pub mod surface;
pub mod swapchain;
pub mod synchronization2;
pub mod timeline_semaphore;
pub mod video_decode_queue;
pub mod video_queue;
pub mod wayland_surface;
pub mod win32_surface;
Expand Down
15 changes: 15 additions & 0 deletions ash/src/extensions/khr/video_decode_queue.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
//! <https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/VK_KHR_video_decode_queue.html>
use crate::vk;

impl crate::khr::video_decode_queue::Device {
#[inline]
/// <https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/vkCmdDecodeVideoKHR.html>
pub unsafe fn cmd_decode_video(
&self,
command_buffer: vk::CommandBuffer,
decode_info: &vk::VideoDecodeInfoKHR<'_>,
) {
(self.fp.cmd_decode_video_khr)(command_buffer, decode_info);
}
}

0 comments on commit 82e45e7

Please sign in to comment.