Realm

vk · Functions · C4

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

FnRustExperimental

Fnvk::cmd_build_acceleration_structures_khr

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

Contract

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

Fnvk::cmd_build_cluster_acceleration_structure_indirect_nv

pub unsafe fn cmd_build_cluster_acceleration_structure_indirect_nv( device: &Device, command_buffer: CommandBuffer, p_command_infos: *const ClusterAccelerationStructureCommandsInfoNV<'_>, ) -> Result<(), CallError>
Call vkCmdBuildClusterAccelerationStructureIndirectNV using this context’s cached function pointer.

Contract

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

Fnvk::cmd_build_micromaps_ext

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

Contract

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

Fnvk::cmd_build_partitioned_acceleration_structures_nv

pub unsafe fn cmd_build_partitioned_acceleration_structures_nv( device: &Device, command_buffer: CommandBuffer, p_build_info: *const BuildPartitionedAccelerationStructureInfoNV<'_>, ) -> Result<(), CallError>
Call vkCmdBuildPartitionedAccelerationStructuresNV using this context’s cached function pointer.

Contract

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

Fnvk::cmd_clear_attachments

pub unsafe fn cmd_clear_attachments( device: &Device, command_buffer: CommandBuffer, attachments: &[ClearAttachment], rects: &[ClearRect], ) -> Result<(), CallError>
Call vkCmdClearAttachments using this context’s cached function pointer.

Contract

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

Fnvk::cmd_clear_color_image

pub unsafe fn cmd_clear_color_image( device: &Device, command_buffer: CommandBuffer, image: Image, image_layout: ImageLayout, color: &ClearColorValue, ranges: &[ImageSubresourceRange], ) -> Result<(), CallError>
Call vkCmdClearColorImage using this context’s cached function pointer.

Contract

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

Fnvk::cmd_clear_depth_stencil_image

pub unsafe fn cmd_clear_depth_stencil_image( device: &Device, command_buffer: CommandBuffer, image: Image, image_layout: ImageLayout, depth_stencil: &ClearDepthStencilValue, ranges: &[ImageSubresourceRange], ) -> Result<(), CallError>
Call vkCmdClearDepthStencilImage using this context’s cached function pointer.

Contract

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

Fnvk::cmd_control_video_coding_khr

pub unsafe fn cmd_control_video_coding_khr( device: &Device, command_buffer: CommandBuffer, p_coding_control_info: *const VideoCodingControlInfoKHR<'_>, ) -> Result<(), CallError>
Call vkCmdControlVideoCodingKHR using this context’s cached function pointer.

Contract

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

Fnvk::cmd_convert_cooperative_vector_matrix_nv

pub unsafe fn cmd_convert_cooperative_vector_matrix_nv( device: &Device, command_buffer: CommandBuffer, info_count: u32, p_infos: *const ConvertCooperativeVectorMatrixInfoNV<'_>, ) -> Result<(), CallError>
Call vkCmdConvertCooperativeVectorMatrixNV using this context’s cached function pointer.

Contract

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

Fnvk::cmd_copy_acceleration_structure_khr

pub unsafe fn cmd_copy_acceleration_structure_khr( device: &Device, command_buffer: CommandBuffer, p_info: *const CopyAccelerationStructureInfoKHR<'_>, ) -> Result<(), CallError>
Call vkCmdCopyAccelerationStructureKHR using this context’s cached function pointer.

Contract

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

Fnvk::cmd_copy_acceleration_structure_nv

pub unsafe fn cmd_copy_acceleration_structure_nv( device: &Device, command_buffer: CommandBuffer, dst: AccelerationStructureNV, src: AccelerationStructureNV, mode: CopyAccelerationStructureModeKHR, ) -> Result<(), CallError>
Call vkCmdCopyAccelerationStructureNV using this context’s cached function pointer.

Contract

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

Fnvk::cmd_copy_acceleration_structure_to_memory_khr

pub unsafe fn cmd_copy_acceleration_structure_to_memory_khr( device: &Device, command_buffer: CommandBuffer, p_info: *const CopyAccelerationStructureToMemoryInfoKHR<'_>, ) -> Result<(), CallError>
Call vkCmdCopyAccelerationStructureToMemoryKHR using this context’s cached function pointer.

Contract

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

Fnvk::cmd_copy_buffer

pub unsafe fn cmd_copy_buffer( device: &Device, command_buffer: CommandBuffer, src_buffer: Buffer, dst_buffer: Buffer, regions: &[BufferCopy], ) -> Result<(), CallError>
Call vkCmdCopyBuffer using this context’s cached function pointer.

Contract

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

Fnvk::cmd_copy_buffer2

pub unsafe fn cmd_copy_buffer2( device: &Device, command_buffer: CommandBuffer, copy_buffer_info: &CopyBufferInfo2<'_>, ) -> Result<(), CallError>
Call vkCmdCopyBuffer2 using this context’s cached function pointer.

Contract

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

Fnvk::cmd_copy_buffer2_khr

pub unsafe fn cmd_copy_buffer2_khr( device: &Device, command_buffer: CommandBuffer, copy_buffer_info: &CopyBufferInfo2<'_>, ) -> Result<(), CallError>
Call vkCmdCopyBuffer2KHR using this context’s cached function pointer.

Contract

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

Fnvk::cmd_copy_buffer_to_image

pub unsafe fn cmd_copy_buffer_to_image( device: &Device, command_buffer: CommandBuffer, src_buffer: Buffer, dst_image: Image, dst_image_layout: ImageLayout, regions: &[BufferImageCopy], ) -> Result<(), CallError>
Call vkCmdCopyBufferToImage using this context’s cached function pointer.

Contract

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