Realm

vk · Functions · T1

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

FnRustExperimental

Fnvk::transition_image_layout

pub unsafe fn transition_image_layout( device: &Device, transition_count: u32, p_transitions: *const HostImageLayoutTransitionInfo<'_>, ) -> Result<Result, CallError>
Call vkTransitionImageLayout using this context’s cached function pointer.

Contract

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

Fnvk::transition_image_layout_ext

pub unsafe fn transition_image_layout_ext( device: &Device, transition_count: u32, p_transitions: *const HostImageLayoutTransitionInfo<'_>, ) -> Result<Result, CallError>
Call vkTransitionImageLayoutEXT using this context’s cached function pointer.

Contract

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

Fnvk::trim_command_pool

pub unsafe fn trim_command_pool( device: &Device, command_pool: CommandPool, flags: CommandPoolTrimFlags, ) -> Result<(), CallError>
Call vkTrimCommandPool using this context’s cached function pointer.

Contract

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

Fnvk::trim_command_pool_khr

pub unsafe fn trim_command_pool_khr( device: &Device, command_pool: CommandPool, flags: CommandPoolTrimFlags, ) -> Result<(), CallError>
Call vkTrimCommandPoolKHR using this context’s cached function pointer.

Contract

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