Realm

vk · Functions · D1

16 public declarations with native signatures and source-owned contracts.

FnRustExperimental

Fnvk::debug_marker_set_object_name_ext

pub unsafe fn debug_marker_set_object_name_ext( device: &Device, p_name_info: *const DebugMarkerObjectNameInfoEXT<'_>, ) -> Result<Result, CallError>
Call vkDebugMarkerSetObjectNameEXT using this context’s cached function pointer.

Contract

Call vkDebugMarkerSetObjectNameEXT using this context’s cached function pointer.

Errors

Reports a missing command or a negative native VkResult; non-error results are preserved.

Safety

The context and all handles must be live and belong to the same Vulkan implementation/device. Meet vkDebugMarkerSetObjectNameEXT valid usage, enabled API/extension/feature, pointer-chain lifetime, callback compatibility and host/GPU synchronization requirements. Native resources require explicit destruction after completion.

Preserves native raw pointers, explicit counts, optional nulls and return values. The caller supplies correctly aligned live storage, initialized output-chain headers and every extent implied by native counts, strides or nested records. No allocation, retry, output initialization, ownership transfer or alias fallback occurs in this wrapper. Outputs, including partial outputs on native failure, remain caller-owned and must be inspected/cleaned up according to Vulkan.

Khronos reference: vkDebugMarkerSetObjectNameEXT

Fnvk::debug_marker_set_object_tag_ext

pub unsafe fn debug_marker_set_object_tag_ext( device: &Device, p_tag_info: *const DebugMarkerObjectTagInfoEXT<'_>, ) -> Result<Result, CallError>
Call vkDebugMarkerSetObjectTagEXT using this context’s cached function pointer.

Contract

Call vkDebugMarkerSetObjectTagEXT using this context’s cached function pointer.

Errors

Reports a missing command or a negative native VkResult; non-error results are preserved.

Safety

The context and all handles must be live and belong to the same Vulkan implementation/device. Meet vkDebugMarkerSetObjectTagEXT valid usage, enabled API/extension/feature, pointer-chain lifetime, callback compatibility and host/GPU synchronization requirements. Native resources require explicit destruction after completion.

Preserves native raw pointers, explicit counts, optional nulls and return values. The caller supplies correctly aligned live storage, initialized output-chain headers and every extent implied by native counts, strides or nested records. No allocation, retry, output initialization, ownership transfer or alias fallback occurs in this wrapper. Outputs, including partial outputs on native failure, remain caller-owned and must be inspected/cleaned up according to Vulkan.

Khronos reference: vkDebugMarkerSetObjectTagEXT

Fnvk::debug_report_message_ext

pub unsafe fn debug_report_message_ext( instance: &Instance, flags: DebugReportFlagsEXT, object_type: DebugReportObjectTypeEXT, object: u64, location: usize, message_code: i32, p_layer_prefix: *const c_char, p_message: *const c_char, ) -> Result<(), CallError>
Call vkDebugReportMessageEXT using this context’s cached function pointer.

Contract

Call vkDebugReportMessageEXT using this context’s cached function pointer.

Errors

Reports a missing command or a negative native VkResult; non-error results are preserved.

Safety

The context and all handles must be live and belong to the same Vulkan implementation/device. Meet vkDebugReportMessageEXT valid usage, enabled API/extension/feature, pointer-chain lifetime, callback compatibility and host/GPU synchronization requirements. Native resources require explicit destruction after completion.

Preserves native raw pointers, explicit counts, optional nulls and return values. The caller supplies correctly aligned live storage, initialized output-chain headers and every extent implied by native counts, strides or nested records. No allocation, retry, output initialization, ownership transfer or alias fallback occurs in this wrapper. Outputs, including partial outputs on native failure, remain caller-owned and must be inspected/cleaned up according to Vulkan.

Khronos reference: vkDebugReportMessageEXT

Fnvk::deferred_operation_join_khr

pub unsafe fn deferred_operation_join_khr( device: &Device, operation: DeferredOperationKHR, ) -> Result<Result, CallError>
Call vkDeferredOperationJoinKHR using this context’s cached function pointer.

Contract

Call vkDeferredOperationJoinKHR using this context’s cached function pointer.

Errors

Reports a missing command or a negative native VkResult; non-error results are preserved.

Safety

The context and all handles must be live and belong to the same Vulkan implementation/device. Meet vkDeferredOperationJoinKHR valid usage, enabled API/extension/feature, pointer-chain lifetime, callback compatibility and host/GPU synchronization requirements. Native resources require explicit destruction after completion.

Preserves native raw pointers, explicit counts, optional nulls and return values. The caller supplies correctly aligned live storage, initialized output-chain headers and every extent implied by native counts, strides or nested records. No allocation, retry, output initialization, ownership transfer or alias fallback occurs in this wrapper. Outputs, including partial outputs on native failure, remain caller-owned and must be inspected/cleaned up according to Vulkan.

Khronos reference: vkDeferredOperationJoinKHR

Fnvk::destroy_acceleration_structure_khr

pub unsafe fn destroy_acceleration_structure_khr( device: &Device, acceleration_structure: AccelerationStructureKHR, p_allocator: *const AllocationCallbacks, ) -> Result<(), CallError>
Call vkDestroyAccelerationStructureKHR using this context’s cached function pointer.

Contract

Call vkDestroyAccelerationStructureKHR using this context’s cached function pointer.

Errors

Reports a missing command or a negative native VkResult; non-error results are preserved.

Safety

The context and all handles must be live and belong to the same Vulkan implementation/device. Meet vkDestroyAccelerationStructureKHR valid usage, enabled API/extension/feature, pointer-chain lifetime, callback compatibility and host/GPU synchronization requirements. Native resources require explicit destruction after completion.

Preserves native raw pointers, explicit counts, optional nulls and return values. The caller supplies correctly aligned live storage, initialized output-chain headers and every extent implied by native counts, strides or nested records. No allocation, retry, output initialization, ownership transfer or alias fallback occurs in this wrapper. Outputs, including partial outputs on native failure, remain caller-owned and must be inspected/cleaned up according to Vulkan.

Khronos reference: vkDestroyAccelerationStructureKHR

Fnvk::destroy_acceleration_structure_nv

pub unsafe fn destroy_acceleration_structure_nv( device: &Device, acceleration_structure: AccelerationStructureNV, p_allocator: *const AllocationCallbacks, ) -> Result<(), CallError>
Call vkDestroyAccelerationStructureNV using this context’s cached function pointer.

Contract

Call vkDestroyAccelerationStructureNV using this context’s cached function pointer.

Errors

Reports a missing command or a negative native VkResult; non-error results are preserved.

Safety

The context and all handles must be live and belong to the same Vulkan implementation/device. Meet vkDestroyAccelerationStructureNV valid usage, enabled API/extension/feature, pointer-chain lifetime, callback compatibility and host/GPU synchronization requirements. Native resources require explicit destruction after completion.

Preserves native raw pointers, explicit counts, optional nulls and return values. The caller supplies correctly aligned live storage, initialized output-chain headers and every extent implied by native counts, strides or nested records. No allocation, retry, output initialization, ownership transfer or alias fallback occurs in this wrapper. Outputs, including partial outputs on native failure, remain caller-owned and must be inspected/cleaned up according to Vulkan.

Khronos reference: vkDestroyAccelerationStructureNV

Fnvk::destroy_buffer

Contract

Destroy a buffer object.

Safety

The buffer must not be in use by the GPU and must not be destroyed twice.

Khronos reference: vkDestroyBuffer

Fnvk::destroy_buffer_collection_fuchsia

pub unsafe fn destroy_buffer_collection_fuchsia( device: &Device, collection: BufferCollectionFUCHSIA, p_allocator: *const AllocationCallbacks, ) -> Result<(), CallError>
Call vkDestroyBufferCollectionFUCHSIA using this context’s cached function pointer.

Contract

Call vkDestroyBufferCollectionFUCHSIA using this context’s cached function pointer.

Errors

Reports a missing command or a negative native VkResult; non-error results are preserved.

Safety

The context and all handles must be live and belong to the same Vulkan implementation/device. Meet vkDestroyBufferCollectionFUCHSIA valid usage, enabled API/extension/feature, pointer-chain lifetime, callback compatibility and host/GPU synchronization requirements. Native resources require explicit destruction after completion.

Preserves native raw pointers, explicit counts, optional nulls and return values. The caller supplies correctly aligned live storage, initialized output-chain headers and every extent implied by native counts, strides or nested records. No allocation, retry, output initialization, ownership transfer or alias fallback occurs in this wrapper. Outputs, including partial outputs on native failure, remain caller-owned and must be inspected/cleaned up according to Vulkan.

Khronos reference: vkDestroyBufferCollectionFUCHSIA

Fnvk::destroy_buffer_view

pub unsafe fn destroy_buffer_view( device: &Device, buffer_view: BufferView, allocator: Option<&AllocationCallbacks>, ) -> Result<(), CallError>
Call vkDestroyBufferView using this context’s cached function pointer.

Contract

Call vkDestroyBufferView using this context’s cached function pointer.

Errors

Reports a missing command, invalid slice lengths/counts or a native error.

Safety

The context and all handles must be live and belong to the same Vulkan implementation/device. Meet vkDestroyBufferView valid usage, enabled API/extension/feature, pointer-chain lifetime, callback compatibility and host/GPU synchronization requirements. Native resources require explicit destruction after completion.

Khronos reference: vkDestroyBufferView

Fnvk::destroy_command_pool

pub unsafe fn destroy_command_pool( device: &Device, pool: CommandPool, allocator: Option<&AllocationCallbacks>, ) -> Result<(), CallError>
Destroy a command pool and all command buffers allocated from it.

Contract

Destroy a command pool and all command buffers allocated from it.

Safety

All command buffers from this pool must have finished execution on the GPU.

Khronos reference: vkDestroyCommandPool

Fnvk::destroy_cu_function_nvx

pub unsafe fn destroy_cu_function_nvx( device: &Device, function: CuFunctionNVX, p_allocator: *const AllocationCallbacks, ) -> Result<(), CallError>
Call vkDestroyCuFunctionNVX using this context’s cached function pointer.

Contract

Call vkDestroyCuFunctionNVX using this context’s cached function pointer.

Errors

Reports a missing command or a negative native VkResult; non-error results are preserved.

Safety

The context and all handles must be live and belong to the same Vulkan implementation/device. Meet vkDestroyCuFunctionNVX valid usage, enabled API/extension/feature, pointer-chain lifetime, callback compatibility and host/GPU synchronization requirements. Native resources require explicit destruction after completion.

Preserves native raw pointers, explicit counts, optional nulls and return values. The caller supplies correctly aligned live storage, initialized output-chain headers and every extent implied by native counts, strides or nested records. No allocation, retry, output initialization, ownership transfer or alias fallback occurs in this wrapper. Outputs, including partial outputs on native failure, remain caller-owned and must be inspected/cleaned up according to Vulkan.

Khronos reference: vkDestroyCuFunctionNVX

Fnvk::destroy_cu_module_nvx

pub unsafe fn destroy_cu_module_nvx( device: &Device, module: CuModuleNVX, p_allocator: *const AllocationCallbacks, ) -> Result<(), CallError>
Call vkDestroyCuModuleNVX using this context’s cached function pointer.

Contract

Call vkDestroyCuModuleNVX using this context’s cached function pointer.

Errors

Reports a missing command or a negative native VkResult; non-error results are preserved.

Safety

The context and all handles must be live and belong to the same Vulkan implementation/device. Meet vkDestroyCuModuleNVX valid usage, enabled API/extension/feature, pointer-chain lifetime, callback compatibility and host/GPU synchronization requirements. Native resources require explicit destruction after completion.

Preserves native raw pointers, explicit counts, optional nulls and return values. The caller supplies correctly aligned live storage, initialized output-chain headers and every extent implied by native counts, strides or nested records. No allocation, retry, output initialization, ownership transfer or alias fallback occurs in this wrapper. Outputs, including partial outputs on native failure, remain caller-owned and must be inspected/cleaned up according to Vulkan.

Khronos reference: vkDestroyCuModuleNVX

Fnvk::destroy_cuda_function_nv

pub unsafe fn destroy_cuda_function_nv( device: &Device, function: CudaFunctionNV, p_allocator: *const AllocationCallbacks, ) -> Result<(), CallError>
Call vkDestroyCudaFunctionNV using this context’s cached function pointer.

Contract

Call vkDestroyCudaFunctionNV using this context’s cached function pointer.

Errors

Reports a missing command or a negative native VkResult; non-error results are preserved.

Safety

The context and all handles must be live and belong to the same Vulkan implementation/device. Meet vkDestroyCudaFunctionNV valid usage, enabled API/extension/feature, pointer-chain lifetime, callback compatibility and host/GPU synchronization requirements. Native resources require explicit destruction after completion.

Preserves native raw pointers, explicit counts, optional nulls and return values. The caller supplies correctly aligned live storage, initialized output-chain headers and every extent implied by native counts, strides or nested records. No allocation, retry, output initialization, ownership transfer or alias fallback occurs in this wrapper. Outputs, including partial outputs on native failure, remain caller-owned and must be inspected/cleaned up according to Vulkan.

Khronos reference: vkDestroyCudaFunctionNV

Fnvk::destroy_cuda_module_nv

pub unsafe fn destroy_cuda_module_nv( device: &Device, module: CudaModuleNV, p_allocator: *const AllocationCallbacks, ) -> Result<(), CallError>
Call vkDestroyCudaModuleNV using this context’s cached function pointer.

Contract

Call vkDestroyCudaModuleNV using this context’s cached function pointer.

Errors

Reports a missing command or a negative native VkResult; non-error results are preserved.

Safety

The context and all handles must be live and belong to the same Vulkan implementation/device. Meet vkDestroyCudaModuleNV valid usage, enabled API/extension/feature, pointer-chain lifetime, callback compatibility and host/GPU synchronization requirements. Native resources require explicit destruction after completion.

Preserves native raw pointers, explicit counts, optional nulls and return values. The caller supplies correctly aligned live storage, initialized output-chain headers and every extent implied by native counts, strides or nested records. No allocation, retry, output initialization, ownership transfer or alias fallback occurs in this wrapper. Outputs, including partial outputs on native failure, remain caller-owned and must be inspected/cleaned up according to Vulkan.

Khronos reference: vkDestroyCudaModuleNV

Fnvk::destroy_data_graph_pipeline_session_arm

pub unsafe fn destroy_data_graph_pipeline_session_arm( device: &Device, session: DataGraphPipelineSessionARM, p_allocator: *const AllocationCallbacks, ) -> Result<(), CallError>
Call vkDestroyDataGraphPipelineSessionARM using this context’s cached function pointer.

Contract

Call vkDestroyDataGraphPipelineSessionARM using this context’s cached function pointer.

Errors

Reports a missing command or a negative native VkResult; non-error results are preserved.

Safety

The context and all handles must be live and belong to the same Vulkan implementation/device. Meet vkDestroyDataGraphPipelineSessionARM valid usage, enabled API/extension/feature, pointer-chain lifetime, callback compatibility and host/GPU synchronization requirements. Native resources require explicit destruction after completion.

Preserves native raw pointers, explicit counts, optional nulls and return values. The caller supplies correctly aligned live storage, initialized output-chain headers and every extent implied by native counts, strides or nested records. No allocation, retry, output initialization, ownership transfer or alias fallback occurs in this wrapper. Outputs, including partial outputs on native failure, remain caller-owned and must be inspected/cleaned up according to Vulkan.

Khronos reference: vkDestroyDataGraphPipelineSessionARM

Fnvk::destroy_debug_report_callback_ext

pub unsafe fn destroy_debug_report_callback_ext( instance: &Instance, callback: DebugReportCallbackEXT, p_allocator: *const AllocationCallbacks, ) -> Result<(), CallError>
Call vkDestroyDebugReportCallbackEXT using this context’s cached function pointer.

Contract

Call vkDestroyDebugReportCallbackEXT using this context’s cached function pointer.

Errors

Reports a missing command or a negative native VkResult; non-error results are preserved.

Safety

The context and all handles must be live and belong to the same Vulkan implementation/device. Meet vkDestroyDebugReportCallbackEXT valid usage, enabled API/extension/feature, pointer-chain lifetime, callback compatibility and host/GPU synchronization requirements. Native resources require explicit destruction after completion.

Preserves native raw pointers, explicit counts, optional nulls and return values. The caller supplies correctly aligned live storage, initialized output-chain headers and every extent implied by native counts, strides or nested records. No allocation, retry, output initialization, ownership transfer or alias fallback occurs in this wrapper. Outputs, including partial outputs on native failure, remain caller-owned and must be inspected/cleaned up according to Vulkan.

Khronos reference: vkDestroyDebugReportCallbackEXT