Realm

vk · Functions · D2

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

FnRustExperimental

Fnvk::destroy_debug_utils_messenger_ext

pub unsafe fn destroy_debug_utils_messenger_ext( instance: &Instance, messenger: DebugUtilsMessengerEXT, p_allocator: *const AllocationCallbacks, ) -> Result<(), CallError>
Call vkDestroyDebugUtilsMessengerEXT using this context’s cached function pointer.

Contract

Call vkDestroyDebugUtilsMessengerEXT 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 vkDestroyDebugUtilsMessengerEXT 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: vkDestroyDebugUtilsMessengerEXT

Fnvk::destroy_deferred_operation_khr

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

Contract

Call vkDestroyDeferredOperationKHR 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 vkDestroyDeferredOperationKHR 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: vkDestroyDeferredOperationKHR

Fnvk::destroy_descriptor_pool

pub unsafe fn destroy_descriptor_pool( device: &Device, descriptor_pool: DescriptorPool, allocator: Option<&AllocationCallbacks>, ) -> Result<(), CallError>
Call vkDestroyDescriptorPool using this context’s cached function pointer.

Contract

Call vkDestroyDescriptorPool 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 vkDestroyDescriptorPool 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: vkDestroyDescriptorPool

Fnvk::destroy_descriptor_set_layout

pub unsafe fn destroy_descriptor_set_layout( device: &Device, descriptor_set_layout: DescriptorSetLayout, allocator: Option<&AllocationCallbacks>, ) -> Result<(), CallError>
Call vkDestroyDescriptorSetLayout using this context’s cached function pointer.

Contract

Call vkDestroyDescriptorSetLayout 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 vkDestroyDescriptorSetLayout 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: vkDestroyDescriptorSetLayout

Fnvk::destroy_descriptor_update_template

pub unsafe fn destroy_descriptor_update_template( device: &Device, descriptor_update_template: DescriptorUpdateTemplate, allocator: Option<&AllocationCallbacks>, ) -> Result<(), CallError>
Call vkDestroyDescriptorUpdateTemplate using this context’s cached function pointer.

Contract

Call vkDestroyDescriptorUpdateTemplate 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 vkDestroyDescriptorUpdateTemplate 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: vkDestroyDescriptorUpdateTemplate

Fnvk::destroy_descriptor_update_template_khr

pub unsafe fn destroy_descriptor_update_template_khr( device: &Device, descriptor_update_template: DescriptorUpdateTemplate, allocator: Option<&AllocationCallbacks>, ) -> Result<(), CallError>
Call vkDestroyDescriptorUpdateTemplateKHR using this context’s cached function pointer.

Contract

Call vkDestroyDescriptorUpdateTemplateKHR 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 vkDestroyDescriptorUpdateTemplateKHR 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: vkDestroyDescriptorUpdateTemplateKHR

Fnvk::destroy_device

Contract

Destroy once, using callbacks compatible with device creation.

Safety

All children and outstanding device operations must be complete. The allocator must match creation, with its user data and functions still live.

Khronos reference: vkDestroyDevice

Fnvk::destroy_event

pub unsafe fn destroy_event( device: &Device, event: Event, allocator: Option<&AllocationCallbacks>, ) -> Result<(), CallError>
Call vkDestroyEvent using this context’s cached function pointer.

Contract

Call vkDestroyEvent 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 vkDestroyEvent 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: vkDestroyEvent

Fnvk::destroy_external_compute_queue_nv

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

Contract

Call vkDestroyExternalComputeQueueNV 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 vkDestroyExternalComputeQueueNV 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: vkDestroyExternalComputeQueueNV

Fnvk::destroy_fence

Contract

Destroy a fence.

Safety

The fence must not be pending or in use by the GPU.

Khronos reference: vkDestroyFence

Fnvk::destroy_framebuffer

pub unsafe fn destroy_framebuffer( device: &Device, framebuffer: Framebuffer, allocator: Option<&AllocationCallbacks>, ) -> Result<(), CallError>
Call vkDestroyFramebuffer using this context’s cached function pointer.

Contract

Call vkDestroyFramebuffer 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 vkDestroyFramebuffer 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: vkDestroyFramebuffer

Fnvk::destroy_gpa_session_amd

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

Contract

Call vkDestroyGpaSessionAMD 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 vkDestroyGpaSessionAMD 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: vkDestroyGpaSessionAMD

Fnvk::destroy_image

pub unsafe fn destroy_image( device: &Device, image: Image, allocator: Option<&AllocationCallbacks>, ) -> Result<(), CallError>
Call vkDestroyImage using this context’s cached function pointer.

Contract

Call vkDestroyImage 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 vkDestroyImage 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: vkDestroyImage

Fnvk::destroy_image_view

pub unsafe fn destroy_image_view( device: &Device, image_view: ImageView, allocator: Option<&AllocationCallbacks>, ) -> Result<(), CallError>
Call vkDestroyImageView using this context’s cached function pointer.

Contract

Call vkDestroyImageView 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 vkDestroyImageView 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: vkDestroyImageView

Fnvk::destroy_indirect_commands_layout_ext

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

Contract

Call vkDestroyIndirectCommandsLayoutEXT 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 vkDestroyIndirectCommandsLayoutEXT 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: vkDestroyIndirectCommandsLayoutEXT

Fnvk::destroy_indirect_commands_layout_nv

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

Contract

Call vkDestroyIndirectCommandsLayoutNV 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 vkDestroyIndirectCommandsLayoutNV 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: vkDestroyIndirectCommandsLayoutNV