Realm

vk · Functions · I1

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

FnRustExperimental

Fnvk::import_fence_fd_khr

pub unsafe fn import_fence_fd_khr( device: &Device, p_import_fence_fd_info: *const ImportFenceFdInfoKHR<'_>, ) -> Result<Result, CallError>
Call vkImportFenceFdKHR using this context’s cached function pointer.

Contract

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

Fnvk::import_fence_win32_handle_khr

pub unsafe fn import_fence_win32_handle_khr( device: &Device, p_import_fence_win32_handle_info: *const ImportFenceWin32HandleInfoKHR<'_>, ) -> Result<Result, CallError>
Call vkImportFenceWin32HandleKHR using this context’s cached function pointer.

Contract

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

Fnvk::import_semaphore_fd_khr

pub unsafe fn import_semaphore_fd_khr( device: &Device, p_import_semaphore_fd_info: *const ImportSemaphoreFdInfoKHR<'_>, ) -> Result<Result, CallError>
Call vkImportSemaphoreFdKHR using this context’s cached function pointer.

Contract

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

Fnvk::import_semaphore_win32_handle_khr

pub unsafe fn import_semaphore_win32_handle_khr( device: &Device, p_import_semaphore_win32_handle_info: *const ImportSemaphoreWin32HandleInfoKHR<'_>, ) -> Result<Result, CallError>
Call vkImportSemaphoreWin32HandleKHR using this context’s cached function pointer.

Contract

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

Fnvk::import_semaphore_zircon_handle_fuchsia

pub unsafe fn import_semaphore_zircon_handle_fuchsia( device: &Device, p_import_semaphore_zircon_handle_info: *const ImportSemaphoreZirconHandleInfoFUCHSIA<'_>, ) -> Result<Result, CallError>
Call vkImportSemaphoreZirconHandleFUCHSIA using this context’s cached function pointer.

Contract

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

Fnvk::initialize_performance_api_intel

pub unsafe fn initialize_performance_api_intel( device: &Device, p_initialize_info: *const InitializePerformanceApiInfoINTEL<'_>, ) -> Result<Result, CallError>
Call vkInitializePerformanceApiINTEL using this context’s cached function pointer.

Contract

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

Fnvk::invalidate_mapped_memory_ranges

pub unsafe fn invalidate_mapped_memory_ranges( device: &Device, ranges: &[MappedMemoryRange<'_>], ) -> Result<(), CallError>
Invalidate mapped memory ranges to make device writes visible to the host.

Contract

Invalidate mapped memory ranges to make device writes visible to the host.

Required for non-host-coherent memory types after GPU writes.

Safety

All ranges must be within currently mapped memory objects.

Khronos reference: vkInvalidateMappedMemoryRanges