Realm

vk · Functions · C10

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

FnRustExperimental

Fnvk::cmd_end_render_pass2

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

Contract

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

Fnvk::cmd_end_render_pass2_khr

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

Contract

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

Fnvk::cmd_end_rendering

Contract

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

Fnvk::cmd_end_rendering2_ext

pub unsafe fn cmd_end_rendering2_ext( device: &Device, command_buffer: CommandBuffer, p_rendering_end_info: *const RenderingEndInfoKHR<'_>, ) -> Result<(), CallError>
Call vkCmdEndRendering2EXT using this context’s cached function pointer.

Contract

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

Fnvk::cmd_end_rendering2_khr

pub unsafe fn cmd_end_rendering2_khr( device: &Device, command_buffer: CommandBuffer, p_rendering_end_info: *const RenderingEndInfoKHR<'_>, ) -> Result<(), CallError>
Call vkCmdEndRendering2KHR using this context’s cached function pointer.

Contract

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

Fnvk::cmd_end_rendering_khr

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

Contract

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

Fnvk::cmd_end_shader_instrumentation_arm

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

Contract

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

Fnvk::cmd_end_transform_feedback2_ext

pub unsafe fn cmd_end_transform_feedback2_ext( device: &Device, command_buffer: CommandBuffer, first_counter_range: u32, counter_range_count: u32, p_counter_infos: *const BindTransformFeedbackBuffer2InfoEXT<'_>, ) -> Result<(), CallError>
Call vkCmdEndTransformFeedback2EXT using this context’s cached function pointer.

Contract

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

Fnvk::cmd_end_transform_feedback_ext

pub unsafe fn cmd_end_transform_feedback_ext( device: &Device, command_buffer: CommandBuffer, first_counter_buffer: u32, counter_buffer_count: u32, p_counter_buffers: *const Buffer, p_counter_buffer_offsets: *const DeviceSize, ) -> Result<(), CallError>
Call vkCmdEndTransformFeedbackEXT using this context’s cached function pointer.

Contract

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

Fnvk::cmd_end_video_coding_khr

pub unsafe fn cmd_end_video_coding_khr( device: &Device, command_buffer: CommandBuffer, p_end_coding_info: *const VideoEndCodingInfoKHR<'_>, ) -> Result<(), CallError>
Call vkCmdEndVideoCodingKHR using this context’s cached function pointer.

Contract

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

Fnvk::cmd_execute_commands

pub unsafe fn cmd_execute_commands( device: &Device, command_buffer: CommandBuffer, command_buffers: &[CommandBuffer], ) -> Result<(), CallError>
Call vkCmdExecuteCommands using this context’s cached function pointer.

Contract

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

Fnvk::cmd_execute_generated_commands_ext

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

Contract

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

Fnvk::cmd_execute_generated_commands_nv

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

Contract

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

Fnvk::cmd_fill_buffer

pub unsafe fn cmd_fill_buffer( device: &Device, command_buffer: CommandBuffer, buffer: Buffer, offset: DeviceSize, size: DeviceSize, data: u32, ) -> Result<(), CallError>
Fill a buffer region with a fixed 32-bit value.

Contract

Fill a buffer region with a fixed 32-bit value.

Safety

buffer must be bound to device memory, in the executable/pending state, and offset/size must be 4-byte aligned.

Khronos reference: vkCmdFillBuffer

Fnvk::cmd_fill_memory_khr

pub unsafe fn cmd_fill_memory_khr( device: &Device, command_buffer: CommandBuffer, p_dst_range: *const DeviceAddressRangeKHR, dst_flags: AddressCommandFlagsKHR, data: u32, ) -> Result<(), CallError>
Call vkCmdFillMemoryKHR using this context’s cached function pointer.

Contract

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

Fnvk::cmd_initialize_graph_scratch_memory_amdx

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

Contract

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