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