Realm

vk · Functions · B1

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

FnRustExperimental

Fnvk::begin_command_buffer

pub unsafe fn begin_command_buffer( device: &Device, command_buffer: CommandBuffer, begin_info: &CommandBufferBeginInfo<'_>, ) -> Result<(), CallError>
Begin recording a command buffer.

Contract

Begin recording a command buffer.

Safety

The command buffer must be in the initial or reset state.

Khronos reference: vkBeginCommandBuffer

Fnvk::bind_acceleration_structure_memory_nv

pub unsafe fn bind_acceleration_structure_memory_nv( device: &Device, bind_info_count: u32, p_bind_infos: *const BindAccelerationStructureMemoryInfoNV<'_>, ) -> Result<Result, CallError>
Call vkBindAccelerationStructureMemoryNV using this context’s cached function pointer.

Contract

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

Fnvk::bind_buffer_memory

pub unsafe fn bind_buffer_memory( device: &Device, buffer: Buffer, memory: DeviceMemory, memory_offset: DeviceSize, ) -> Result<(), CallError>
Bind device memory to a buffer at the given offset.

Contract

Bind device memory to a buffer at the given offset.

Safety

memory must have been allocated with a compatible type and sufficient size. The buffer must not already have memory bound.

Khronos reference: vkBindBufferMemory

Fnvk::bind_buffer_memory2

pub unsafe fn bind_buffer_memory2( device: &Device, bind_infos: &[BindBufferMemoryInfo<'_>], ) -> Result<(), CallError>
Call vkBindBufferMemory2 using this context’s cached function pointer.

Contract

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

Fnvk::bind_buffer_memory2_khr

pub unsafe fn bind_buffer_memory2_khr( device: &Device, bind_infos: &[BindBufferMemoryInfo<'_>], ) -> Result<(), CallError>
Call vkBindBufferMemory2KHR using this context’s cached function pointer.

Contract

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

Fnvk::bind_data_graph_pipeline_session_memory_arm

pub unsafe fn bind_data_graph_pipeline_session_memory_arm( device: &Device, bind_info_count: u32, p_bind_infos: *const BindDataGraphPipelineSessionMemoryInfoARM<'_>, ) -> Result<Result, CallError>
Call vkBindDataGraphPipelineSessionMemoryARM using this context’s cached function pointer.

Contract

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

Fnvk::bind_image_memory

pub unsafe fn bind_image_memory( device: &Device, image: Image, memory: DeviceMemory, memory_offset: DeviceSize, ) -> Result<(), CallError>
Call vkBindImageMemory using this context’s cached function pointer.

Contract

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

Fnvk::bind_image_memory2

pub unsafe fn bind_image_memory2( device: &Device, bind_infos: &[BindImageMemoryInfo<'_>], ) -> Result<(), CallError>
Call vkBindImageMemory2 using this context’s cached function pointer.

Contract

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

Fnvk::bind_image_memory2_khr

pub unsafe fn bind_image_memory2_khr( device: &Device, bind_infos: &[BindImageMemoryInfo<'_>], ) -> Result<(), CallError>
Call vkBindImageMemory2KHR using this context’s cached function pointer.

Contract

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

Fnvk::bind_optical_flow_session_image_nv

pub unsafe fn bind_optical_flow_session_image_nv( device: &Device, session: OpticalFlowSessionNV, binding_point: OpticalFlowSessionBindingPointNV, view: ImageView, layout: ImageLayout, ) -> Result<Result, CallError>
Call vkBindOpticalFlowSessionImageNV using this context’s cached function pointer.

Contract

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

Fnvk::bind_tensor_memory_arm

pub unsafe fn bind_tensor_memory_arm( device: &Device, bind_info_count: u32, p_bind_infos: *const BindTensorMemoryInfoARM<'_>, ) -> Result<Result, CallError>
Call vkBindTensorMemoryARM using this context’s cached function pointer.

Contract

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

Fnvk::bind_video_session_memory_khr

pub unsafe fn bind_video_session_memory_khr( device: &Device, video_session: VideoSessionKHR, bind_session_memory_info_count: u32, p_bind_session_memory_infos: *const BindVideoSessionMemoryInfoKHR<'_>, ) -> Result<Result, CallError>
Call vkBindVideoSessionMemoryKHR using this context’s cached function pointer.

Contract

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

Fnvk::build_acceleration_structures_khr

pub unsafe fn build_acceleration_structures_khr( device: &Device, deferred_operation: DeferredOperationKHR, info_count: u32, p_infos: *const AccelerationStructureBuildGeometryInfoKHR<'_>, pp_build_range_infos: *const *const AccelerationStructureBuildRangeInfoKHR, ) -> Result<Result, CallError>
Call vkBuildAccelerationStructuresKHR using this context’s cached function pointer.

Contract

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

Fnvk::build_micromaps_ext

pub unsafe fn build_micromaps_ext( device: &Device, deferred_operation: DeferredOperationKHR, info_count: u32, p_infos: *const MicromapBuildInfoEXT<'_>, ) -> Result<Result, CallError>
Call vkBuildMicromapsEXT using this context’s cached function pointer.

Contract

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