Realm

vk · Functions · D4

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

FnRustExperimental

Fnvk::destroy_shader_ext

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

Contract

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

Fnvk::destroy_shader_instrumentation_arm

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

Contract

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

Fnvk::destroy_shader_module

pub unsafe fn destroy_shader_module( device: &Device, shader_module: ShaderModule, allocator: Option<&AllocationCallbacks>, ) -> Result<(), CallError>
Call vkDestroyShaderModule using this context’s cached function pointer.

Contract

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

Fnvk::destroy_surface_khr

pub unsafe fn destroy_surface_khr( instance: &Instance, surface: SurfaceKHR, p_allocator: *const AllocationCallbacks, ) -> Result<(), CallError>
Call vkDestroySurfaceKHR using this context’s cached function pointer.

Contract

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

Fnvk::destroy_swapchain_khr

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

Contract

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

Fnvk::destroy_tensor_arm

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

Contract

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

Fnvk::destroy_tensor_view_arm

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

Contract

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

Fnvk::destroy_validation_cache_ext

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

Contract

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

Fnvk::destroy_video_session_khr

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

Contract

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

Fnvk::destroy_video_session_parameters_khr

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

Contract

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

Fnvk::device_wait_idle

Contract

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

Fnvk::display_power_control_ext

pub unsafe fn display_power_control_ext( device: &Device, display: DisplayKHR, p_display_power_info: *const DisplayPowerInfoEXT<'_>, ) -> Result<Result, CallError>
Call vkDisplayPowerControlEXT using this context’s cached function pointer.

Contract

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