Realm

vk · Functions · C11

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

FnRustExperimental

Fnvk::cmd_insert_debug_utils_label_ext

pub unsafe fn cmd_insert_debug_utils_label_ext( device: &Device, command_buffer: CommandBuffer, p_label_info: *const DebugUtilsLabelEXT<'_>, ) -> Result<(), CallError>
Call vkCmdInsertDebugUtilsLabelEXT using this context’s cached function pointer.

Contract

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

Fnvk::cmd_next_subpass

pub unsafe fn cmd_next_subpass( device: &Device, command_buffer: CommandBuffer, contents: SubpassContents, ) -> Result<(), CallError>
Call vkCmdNextSubpass using this context’s cached function pointer.

Contract

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

Fnvk::cmd_next_subpass2

pub unsafe fn cmd_next_subpass2( device: &Device, command_buffer: CommandBuffer, subpass_begin_info: &SubpassBeginInfo<'_>, subpass_end_info: &SubpassEndInfo<'_>, ) -> Result<(), CallError>
Call vkCmdNextSubpass2 using this context’s cached function pointer.

Contract

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

Fnvk::cmd_next_subpass2_khr

pub unsafe fn cmd_next_subpass2_khr( device: &Device, command_buffer: CommandBuffer, subpass_begin_info: &SubpassBeginInfo<'_>, subpass_end_info: &SubpassEndInfo<'_>, ) -> Result<(), CallError>
Call vkCmdNextSubpass2KHR using this context’s cached function pointer.

Contract

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

Fnvk::cmd_optical_flow_execute_nv

pub unsafe fn cmd_optical_flow_execute_nv( device: &Device, command_buffer: CommandBuffer, session: OpticalFlowSessionNV, p_execute_info: *const OpticalFlowExecuteInfoNV<'_>, ) -> Result<(), CallError>
Call vkCmdOpticalFlowExecuteNV using this context’s cached function pointer.

Contract

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

Fnvk::cmd_pipeline_barrier

pub unsafe fn cmd_pipeline_barrier( device: &Device, command_buffer: CommandBuffer, src_stage_mask: PipelineStageFlags, dst_stage_mask: PipelineStageFlags, dependency_flags: DependencyFlags, memory_barriers: &[MemoryBarrier<'_>], buffer_memory_barriers: &[BufferMemoryBarrier<'_>], image_memory_barriers: &[ImageMemoryBarrier<'_>], ) -> Result<(), CallError>
Call vkCmdPipelineBarrier using this context’s cached function pointer.

Contract

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

Fnvk::cmd_pipeline_barrier2

pub unsafe fn cmd_pipeline_barrier2( device: &Device, command_buffer: CommandBuffer, dependency_info: &DependencyInfo<'_>, ) -> Result<(), CallError>
Call vkCmdPipelineBarrier2 using this context’s cached function pointer.

Contract

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

Fnvk::cmd_pipeline_barrier2_khr

pub unsafe fn cmd_pipeline_barrier2_khr( device: &Device, command_buffer: CommandBuffer, dependency_info: &DependencyInfo<'_>, ) -> Result<(), CallError>
Call vkCmdPipelineBarrier2KHR using this context’s cached function pointer.

Contract

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

Fnvk::cmd_preprocess_generated_commands_ext

pub unsafe fn cmd_preprocess_generated_commands_ext( device: &Device, command_buffer: CommandBuffer, p_generated_commands_info: *const GeneratedCommandsInfoEXT<'_>, state_command_buffer: CommandBuffer, ) -> Result<(), CallError>
Call vkCmdPreprocessGeneratedCommandsEXT using this context’s cached function pointer.

Contract

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

Fnvk::cmd_preprocess_generated_commands_nv

pub unsafe fn cmd_preprocess_generated_commands_nv( device: &Device, command_buffer: CommandBuffer, p_generated_commands_info: *const GeneratedCommandsInfoNV<'_>, ) -> Result<(), CallError>
Call vkCmdPreprocessGeneratedCommandsNV using this context’s cached function pointer.

Contract

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

Fnvk::cmd_push_constants

pub unsafe fn cmd_push_constants( device: &Device, command_buffer: CommandBuffer, layout: PipelineLayout, stage_flags: ShaderStageFlags, offset: u32, values: &[u8], ) -> Result<(), CallError>
Call vkCmdPushConstants using this context’s cached function pointer.

Contract

Call vkCmdPushConstants 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 vkCmdPushConstants valid usage, enabled API/extension/feature, pointer-chain lifetime, callback compatibility and host/GPU synchronization requirements. Native resources require explicit destruction after completion.

Byte slices determine native byte counts. The caller must also satisfy the command’s data alignment, format, size-multiple and stride requirements; a byte slice alone does not establish those properties.

Khronos reference: vkCmdPushConstants

Fnvk::cmd_push_constants2

pub unsafe fn cmd_push_constants2( device: &Device, command_buffer: CommandBuffer, p_push_constants_info: *const PushConstantsInfo<'_>, ) -> Result<(), CallError>
Call vkCmdPushConstants2 using this context’s cached function pointer.

Contract

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

Fnvk::cmd_push_constants2_khr

pub unsafe fn cmd_push_constants2_khr( device: &Device, command_buffer: CommandBuffer, p_push_constants_info: *const PushConstantsInfo<'_>, ) -> Result<(), CallError>
Call vkCmdPushConstants2KHR using this context’s cached function pointer.

Contract

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

Fnvk::cmd_push_data_ext

pub unsafe fn cmd_push_data_ext( device: &Device, command_buffer: CommandBuffer, p_push_data_info: *const PushDataInfoEXT<'_>, ) -> Result<(), CallError>
Call vkCmdPushDataEXT using this context’s cached function pointer.

Contract

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

Fnvk::cmd_push_descriptor_set

pub unsafe fn cmd_push_descriptor_set( device: &Device, command_buffer: CommandBuffer, pipeline_bind_point: PipelineBindPoint, layout: PipelineLayout, set: u32, descriptor_write_count: u32, p_descriptor_writes: *const WriteDescriptorSet<'_>, ) -> Result<(), CallError>
Call vkCmdPushDescriptorSet using this context’s cached function pointer.

Contract

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

Fnvk::cmd_push_descriptor_set2

pub unsafe fn cmd_push_descriptor_set2( device: &Device, command_buffer: CommandBuffer, p_push_descriptor_set_info: *const PushDescriptorSetInfo<'_>, ) -> Result<(), CallError>
Call vkCmdPushDescriptorSet2 using this context’s cached function pointer.

Contract

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