Realm

vk · Functions · C7

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

FnRustExperimental

Fnvk::cmd_decompress_memory_nv

pub unsafe fn cmd_decompress_memory_nv( device: &Device, command_buffer: CommandBuffer, decompress_region_count: u32, p_decompress_memory_regions: *const DecompressMemoryRegionNV, ) -> Result<(), CallError>
Call vkCmdDecompressMemoryNV using this context’s cached function pointer.

Contract

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

Fnvk::cmd_dispatch

pub unsafe fn cmd_dispatch( device: &Device, command_buffer: CommandBuffer, group_count_x: u32, group_count_y: u32, group_count_z: u32, ) -> Result<(), CallError>
Record a compute dispatch into a command buffer.

Contract

Record a compute dispatch into a command buffer.

Errors

Returns CallError::MissingCommand if vkCmdDispatch was not loaded (extension not enabled or unsupported device).

Safety

command_buffer must be in the recording state. group_count_* must not exceed VkPhysicalDeviceLimits::max_compute_work_group_count.

Khronos reference: vkCmdDispatch

Fnvk::cmd_dispatch_base

pub unsafe fn cmd_dispatch_base( device: &Device, command_buffer: CommandBuffer, base_group_x: u32, base_group_y: u32, base_group_z: u32, group_count_x: u32, group_count_y: u32, group_count_z: u32, ) -> Result<(), CallError>
Call vkCmdDispatchBase using this context’s cached function pointer.

Contract

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

Fnvk::cmd_dispatch_base_khr

pub unsafe fn cmd_dispatch_base_khr( device: &Device, command_buffer: CommandBuffer, base_group_x: u32, base_group_y: u32, base_group_z: u32, group_count_x: u32, group_count_y: u32, group_count_z: u32, ) -> Result<(), CallError>
Call vkCmdDispatchBaseKHR using this context’s cached function pointer.

Contract

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

Fnvk::cmd_dispatch_data_graph_arm

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

Contract

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

Fnvk::cmd_dispatch_graph_amdx

pub unsafe fn cmd_dispatch_graph_amdx( device: &Device, command_buffer: CommandBuffer, scratch: DeviceAddress, scratch_size: DeviceSize, p_count_info: *const DispatchGraphCountInfoAMDX, ) -> Result<(), CallError>
Call vkCmdDispatchGraphAMDX using this context’s cached function pointer.

Contract

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

Fnvk::cmd_dispatch_graph_indirect_amdx

pub unsafe fn cmd_dispatch_graph_indirect_amdx( device: &Device, command_buffer: CommandBuffer, scratch: DeviceAddress, scratch_size: DeviceSize, p_count_info: *const DispatchGraphCountInfoAMDX, ) -> Result<(), CallError>
Call vkCmdDispatchGraphIndirectAMDX using this context’s cached function pointer.

Contract

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

Fnvk::cmd_dispatch_graph_indirect_count_amdx

pub unsafe fn cmd_dispatch_graph_indirect_count_amdx( device: &Device, command_buffer: CommandBuffer, scratch: DeviceAddress, scratch_size: DeviceSize, count_info: DeviceAddress, ) -> Result<(), CallError>
Call vkCmdDispatchGraphIndirectCountAMDX using this context’s cached function pointer.

Contract

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

Fnvk::cmd_dispatch_indirect

pub unsafe fn cmd_dispatch_indirect( device: &Device, command_buffer: CommandBuffer, buffer: Buffer, offset: DeviceSize, ) -> Result<(), CallError>
Call vkCmdDispatchIndirect using this context’s cached function pointer.

Contract

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

Fnvk::cmd_dispatch_indirect2_khr

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

Contract

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

Fnvk::cmd_dispatch_tile_qcom

pub unsafe fn cmd_dispatch_tile_qcom( device: &Device, command_buffer: CommandBuffer, p_dispatch_tile_info: *const DispatchTileInfoQCOM<'_>, ) -> Result<(), CallError>
Call vkCmdDispatchTileQCOM using this context’s cached function pointer.

Contract

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

Fnvk::cmd_draw

pub unsafe fn cmd_draw( device: &Device, command_buffer: CommandBuffer, vertex_count: u32, instance_count: u32, first_vertex: u32, first_instance: u32, ) -> Result<(), CallError>
Call vkCmdDraw using this context’s cached function pointer.

Contract

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

Fnvk::cmd_draw_cluster_huawei

pub unsafe fn cmd_draw_cluster_huawei( device: &Device, command_buffer: CommandBuffer, group_count_x: u32, group_count_y: u32, group_count_z: u32, ) -> Result<(), CallError>
Call vkCmdDrawClusterHUAWEI using this context’s cached function pointer.

Contract

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

Fnvk::cmd_draw_cluster_indirect_huawei

pub unsafe fn cmd_draw_cluster_indirect_huawei( device: &Device, command_buffer: CommandBuffer, buffer: Buffer, offset: DeviceSize, ) -> Result<(), CallError>
Call vkCmdDrawClusterIndirectHUAWEI using this context’s cached function pointer.

Contract

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

Fnvk::cmd_draw_indexed

pub unsafe fn cmd_draw_indexed( device: &Device, command_buffer: CommandBuffer, index_count: u32, instance_count: u32, first_index: u32, vertex_offset: i32, first_instance: u32, ) -> Result<(), CallError>
Call vkCmdDrawIndexed using this context’s cached function pointer.

Contract

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

Fnvk::cmd_draw_indexed_indirect

pub unsafe fn cmd_draw_indexed_indirect( device: &Device, command_buffer: CommandBuffer, buffer: Buffer, offset: DeviceSize, draw_count: u32, stride: u32, ) -> Result<(), CallError>
Call vkCmdDrawIndexedIndirect using this context’s cached function pointer.

Contract

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