Realm

vk · Functions · L1

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

FnRustExperimental

Fnvk::latency_sleep_legacy_nv

pub unsafe fn latency_sleep_legacy_nv( device: &Device, signal_semaphore: Semaphore, value: u64, ) -> Result<(), CallError>
Call vkLatencySleepLegacyNV using this context’s cached function pointer.

Contract

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

Fnvk::latency_sleep_nv

pub unsafe fn latency_sleep_nv( device: &Device, swapchain: SwapchainKHR, p_sleep_info: *const LatencySleepInfoNV<'_>, ) -> Result<Result, CallError>
Call vkLatencySleepNV using this context’s cached function pointer.

Contract

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