Realm

vk · Functions · S2

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

FnRustExperimental

Fnvk::shutdown_latency_device_legacy_nv

Contract

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

Fnvk::signal_semaphore

pub unsafe fn signal_semaphore( device: &Device, signal_info: &SemaphoreSignalInfo<'_>, ) -> Result<(), CallError>
Call vkSignalSemaphore using this context’s cached function pointer.

Contract

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

Fnvk::signal_semaphore_khr

pub unsafe fn signal_semaphore_khr( device: &Device, signal_info: &SemaphoreSignalInfo<'_>, ) -> Result<(), CallError>
Call vkSignalSemaphoreKHR using this context’s cached function pointer.

Contract

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

Fnvk::submit_debug_utils_message_ext

pub unsafe fn submit_debug_utils_message_ext( instance: &Instance, message_severity: DebugUtilsMessageSeverityFlagBitsEXT, message_types: DebugUtilsMessageTypeFlagsEXT, p_callback_data: *const DebugUtilsMessengerCallbackDataEXT<'_>, ) -> Result<(), CallError>
Call vkSubmitDebugUtilsMessageEXT using this context’s cached function pointer.

Contract

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