Skip to main content

vulkan_rust/generated/
entry_wrappers.rs

1#![allow(unused_imports)]
2#![allow(clippy::too_many_arguments)]
3use crate::error::{VkResult, check, enumerate_two_call, fill_two_call};
4use crate::vk::*;
5impl crate::Entry {
6    ///Wraps [`vkGetExternalComputeQueueDataNV`](https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetExternalComputeQueueDataNV.html).
7    /**
8    Provided by **VK_NV_external_compute_queue**.*/
9    ///
10    ///# Safety
11    ///- `externalQueue` (self) must be valid and not destroyed.
12    ///
13    ///# Panics
14    ///Panics if `vkGetExternalComputeQueueDataNV` was not loaded. This can happen if the required extension or Vulkan version is not enabled on the instance or device.
15    ///
16    ///# Usage Notes
17    ///
18    ///Retrieves data from an external compute queue, allowing the
19    ///application to read back results or state produced by work
20    ///submitted outside the Vulkan runtime.
21    ///
22    ///Requires `VK_NV_external_compute_queue`.
23    pub unsafe fn get_external_compute_queue_data_nv(
24        &self,
25        external_queue: ExternalComputeQueueNV,
26        params: &mut ExternalComputeQueueDataParamsNV,
27    ) -> core::ffi::c_void {
28        let fp = self
29            .commands()
30            .get_external_compute_queue_data_nv
31            .expect("vkGetExternalComputeQueueDataNV not loaded");
32        let mut out = unsafe { core::mem::zeroed() };
33        unsafe { fp(external_queue, params, &mut out) };
34        out
35    }
36}