From 82e45e7e6df9b9c97fee22e4044e02eafd8dae1d Mon Sep 17 00:00:00 2001 From: Colin Marc Date: Sat, 30 Nov 2024 18:39:54 +0100 Subject: [PATCH] extensions/khr: add VK_KHR_video_decode_queue --- ash/src/extensions/khr/mod.rs | 1 + ash/src/extensions/khr/video_decode_queue.rs | 15 +++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 ash/src/extensions/khr/video_decode_queue.rs diff --git a/ash/src/extensions/khr/mod.rs b/ash/src/extensions/khr/mod.rs index 437e45f2..d222759f 100644 --- a/ash/src/extensions/khr/mod.rs +++ b/ash/src/extensions/khr/mod.rs @@ -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; diff --git a/ash/src/extensions/khr/video_decode_queue.rs b/ash/src/extensions/khr/video_decode_queue.rs new file mode 100644 index 00000000..6d66baad --- /dev/null +++ b/ash/src/extensions/khr/video_decode_queue.rs @@ -0,0 +1,15 @@ +//! + +use crate::vk; + +impl crate::khr::video_decode_queue::Device { + #[inline] + /// + 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); + } +}