Realm

vk · Functions · C21

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

FnRustExperimental

Fnvk::copy_acceleration_structure_to_memory_khr

pub unsafe fn copy_acceleration_structure_to_memory_khr( device: &Device, deferred_operation: DeferredOperationKHR, p_info: *const CopyAccelerationStructureToMemoryInfoKHR<'_>, ) -> Result<Result, CallError>
Call vkCopyAccelerationStructureToMemoryKHR using this context’s cached function pointer.

Contract

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

Fnvk::copy_image_to_image

pub unsafe fn copy_image_to_image( device: &Device, p_copy_image_to_image_info: *const CopyImageToImageInfo<'_>, ) -> Result<Result, CallError>
Call vkCopyImageToImage using this context’s cached function pointer.

Contract

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

Fnvk::copy_image_to_image_ext

pub unsafe fn copy_image_to_image_ext( device: &Device, p_copy_image_to_image_info: *const CopyImageToImageInfo<'_>, ) -> Result<Result, CallError>
Call vkCopyImageToImageEXT using this context’s cached function pointer.

Contract

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

Fnvk::copy_image_to_memory

pub unsafe fn copy_image_to_memory( device: &Device, p_copy_image_to_memory_info: *const CopyImageToMemoryInfo<'_>, ) -> Result<Result, CallError>
Call vkCopyImageToMemory using this context’s cached function pointer.

Contract

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

Fnvk::copy_image_to_memory_ext

pub unsafe fn copy_image_to_memory_ext( device: &Device, p_copy_image_to_memory_info: *const CopyImageToMemoryInfo<'_>, ) -> Result<Result, CallError>
Call vkCopyImageToMemoryEXT using this context’s cached function pointer.

Contract

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

Fnvk::copy_memory_to_acceleration_structure_khr

pub unsafe fn copy_memory_to_acceleration_structure_khr( device: &Device, deferred_operation: DeferredOperationKHR, p_info: *const CopyMemoryToAccelerationStructureInfoKHR<'_>, ) -> Result<Result, CallError>
Call vkCopyMemoryToAccelerationStructureKHR using this context’s cached function pointer.

Contract

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

Fnvk::copy_memory_to_image

pub unsafe fn copy_memory_to_image( device: &Device, p_copy_memory_to_image_info: *const CopyMemoryToImageInfo<'_>, ) -> Result<Result, CallError>
Call vkCopyMemoryToImage using this context’s cached function pointer.

Contract

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

Fnvk::copy_memory_to_image_ext

pub unsafe fn copy_memory_to_image_ext( device: &Device, p_copy_memory_to_image_info: *const CopyMemoryToImageInfo<'_>, ) -> Result<Result, CallError>
Call vkCopyMemoryToImageEXT using this context’s cached function pointer.

Contract

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

Fnvk::copy_memory_to_micromap_ext

pub unsafe fn copy_memory_to_micromap_ext( device: &Device, deferred_operation: DeferredOperationKHR, p_info: *const CopyMemoryToMicromapInfoEXT<'_>, ) -> Result<Result, CallError>
Call vkCopyMemoryToMicromapEXT using this context’s cached function pointer.

Contract

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

Fnvk::copy_micromap_ext

pub unsafe fn copy_micromap_ext( device: &Device, deferred_operation: DeferredOperationKHR, p_info: *const CopyMicromapInfoEXT<'_>, ) -> Result<Result, CallError>
Call vkCopyMicromapEXT using this context’s cached function pointer.

Contract

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

Fnvk::copy_micromap_to_memory_ext

pub unsafe fn copy_micromap_to_memory_ext( device: &Device, deferred_operation: DeferredOperationKHR, p_info: *const CopyMicromapToMemoryInfoEXT<'_>, ) -> Result<Result, CallError>
Call vkCopyMicromapToMemoryEXT using this context’s cached function pointer.

Contract

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

Fnvk::create_acceleration_structure2_khr

pub unsafe fn create_acceleration_structure2_khr( device: &Device, p_create_info: *const AccelerationStructureCreateInfo2KHR<'_>, p_allocator: *const AllocationCallbacks, p_acceleration_structure: *mut AccelerationStructureKHR, ) -> Result<Result, CallError>
Call vkCreateAccelerationStructure2KHR using this context’s cached function pointer.

Contract

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

Fnvk::create_acceleration_structure_khr

pub unsafe fn create_acceleration_structure_khr( device: &Device, p_create_info: *const AccelerationStructureCreateInfoKHR<'_>, p_allocator: *const AllocationCallbacks, p_acceleration_structure: *mut AccelerationStructureKHR, ) -> Result<Result, CallError>
Call vkCreateAccelerationStructureKHR using this context’s cached function pointer.

Contract

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

Fnvk::create_acceleration_structure_nv

pub unsafe fn create_acceleration_structure_nv( device: &Device, p_create_info: *const AccelerationStructureCreateInfoNV<'_>, p_allocator: *const AllocationCallbacks, p_acceleration_structure: *mut AccelerationStructureNV, ) -> Result<Result, CallError>
Call vkCreateAccelerationStructureNV using this context’s cached function pointer.

Contract

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

Fnvk::create_android_surface_khr

pub unsafe fn create_android_surface_khr( instance: &Instance, p_create_info: *const AndroidSurfaceCreateInfoKHR<'_>, p_allocator: *const AllocationCallbacks, p_surface: *mut SurfaceKHR, ) -> Result<Result, CallError>
Call vkCreateAndroidSurfaceKHR using this context’s cached function pointer.

Contract

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

Fnvk::create_buffer

Contract

Create a buffer object.

Safety

create_info must be valid. Memory must be bound before use.

Khronos reference: vkCreateBuffer