Realm

vk · Functions · C19

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

FnRustExperimental

Fnvk::cmd_set_tessellation_domain_origin_ext

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

Contract

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

Fnvk::cmd_set_vertex_input_ext

pub unsafe fn cmd_set_vertex_input_ext( device: &Device, command_buffer: CommandBuffer, vertex_binding_description_count: u32, p_vertex_binding_descriptions: *const VertexInputBindingDescription2EXT<'_>, vertex_attribute_description_count: u32, p_vertex_attribute_descriptions: *const VertexInputAttributeDescription2EXT<'_>, ) -> Result<(), CallError>
Call vkCmdSetVertexInputEXT using this context’s cached function pointer.

Contract

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

Fnvk::cmd_set_viewport

pub unsafe fn cmd_set_viewport( device: &Device, command_buffer: CommandBuffer, first_viewport: u32, viewports: &[Viewport], ) -> Result<(), CallError>
Call vkCmdSetViewport using this context’s cached function pointer.

Contract

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

Fnvk::cmd_set_viewport_shading_rate_palette_nv

pub unsafe fn cmd_set_viewport_shading_rate_palette_nv( device: &Device, command_buffer: CommandBuffer, first_viewport: u32, viewport_count: u32, p_shading_rate_palettes: *const ShadingRatePaletteNV<'_>, ) -> Result<(), CallError>
Call vkCmdSetViewportShadingRatePaletteNV using this context’s cached function pointer.

Contract

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

Fnvk::cmd_set_viewport_swizzle_nv

pub unsafe fn cmd_set_viewport_swizzle_nv( device: &Device, command_buffer: CommandBuffer, first_viewport: u32, viewport_count: u32, p_viewport_swizzles: *const ViewportSwizzleNV, ) -> Result<(), CallError>
Call vkCmdSetViewportSwizzleNV using this context’s cached function pointer.

Contract

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

Fnvk::cmd_set_viewport_w_scaling_enable_nv

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

Contract

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

Fnvk::cmd_set_viewport_w_scaling_nv

pub unsafe fn cmd_set_viewport_w_scaling_nv( device: &Device, command_buffer: CommandBuffer, first_viewport: u32, viewport_count: u32, p_viewport_w_scalings: *const ViewportWScalingNV, ) -> Result<(), CallError>
Call vkCmdSetViewportWScalingNV using this context’s cached function pointer.

Contract

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

Fnvk::cmd_set_viewport_with_count

pub unsafe fn cmd_set_viewport_with_count( device: &Device, command_buffer: CommandBuffer, viewport_count: u32, p_viewports: *const Viewport, ) -> Result<(), CallError>
Call vkCmdSetViewportWithCount using this context’s cached function pointer.

Contract

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

Fnvk::cmd_set_viewport_with_count_ext

pub unsafe fn cmd_set_viewport_with_count_ext( device: &Device, command_buffer: CommandBuffer, viewport_count: u32, p_viewports: *const Viewport, ) -> Result<(), CallError>
Call vkCmdSetViewportWithCountEXT using this context’s cached function pointer.

Contract

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

Fnvk::cmd_subpass_shading_huawei

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

Contract

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

Fnvk::cmd_trace_rays_indirect2_khr

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

Contract

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

Fnvk::cmd_trace_rays_indirect_khr

pub unsafe fn cmd_trace_rays_indirect_khr( device: &Device, command_buffer: CommandBuffer, p_raygen_shader_binding_table: *const StridedDeviceAddressRegionKHR, p_miss_shader_binding_table: *const StridedDeviceAddressRegionKHR, p_hit_shader_binding_table: *const StridedDeviceAddressRegionKHR, p_callable_shader_binding_table: *const StridedDeviceAddressRegionKHR, indirect_device_address: DeviceAddress, ) -> Result<(), CallError>
Call vkCmdTraceRaysIndirectKHR using this context’s cached function pointer.

Contract

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

Fnvk::cmd_trace_rays_khr

pub unsafe fn cmd_trace_rays_khr( device: &Device, command_buffer: CommandBuffer, p_raygen_shader_binding_table: *const StridedDeviceAddressRegionKHR, p_miss_shader_binding_table: *const StridedDeviceAddressRegionKHR, p_hit_shader_binding_table: *const StridedDeviceAddressRegionKHR, p_callable_shader_binding_table: *const StridedDeviceAddressRegionKHR, width: u32, height: u32, depth: u32, ) -> Result<(), CallError>
Call vkCmdTraceRaysKHR using this context’s cached function pointer.

Contract

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

Fnvk::cmd_trace_rays_nv

pub unsafe fn cmd_trace_rays_nv( device: &Device, command_buffer: CommandBuffer, raygen_shader_binding_table_buffer: Buffer, raygen_shader_binding_offset: DeviceSize, miss_shader_binding_table_buffer: Buffer, miss_shader_binding_offset: DeviceSize, miss_shader_binding_stride: DeviceSize, hit_shader_binding_table_buffer: Buffer, hit_shader_binding_offset: DeviceSize, hit_shader_binding_stride: DeviceSize, callable_shader_binding_table_buffer: Buffer, callable_shader_binding_offset: DeviceSize, callable_shader_binding_stride: DeviceSize, width: u32, height: u32, depth: u32, ) -> Result<(), CallError>
Call vkCmdTraceRaysNV using this context’s cached function pointer.

Contract

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

Fnvk::cmd_update_buffer

pub unsafe fn cmd_update_buffer( device: &Device, command_buffer: CommandBuffer, dst_buffer: Buffer, dst_offset: DeviceSize, data: &[u8], ) -> Result<(), CallError>
Call vkCmdUpdateBuffer using this context’s cached function pointer.

Contract

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

Fnvk::cmd_update_memory_khr

pub unsafe fn cmd_update_memory_khr( device: &Device, command_buffer: CommandBuffer, p_dst_range: *const DeviceAddressRangeKHR, dst_flags: AddressCommandFlagsKHR, data_size: DeviceSize, p_data: *const c_void, ) -> Result<(), CallError>
Call vkCmdUpdateMemoryKHR using this context’s cached function pointer.

Contract

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