Realm

vk · Functions · C25

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

FnRustExperimental

Fnvk::create_ray_tracing_pipelines_nv

pub unsafe fn create_ray_tracing_pipelines_nv( device: &Device, pipeline_cache: PipelineCache, create_info_count: u32, p_create_infos: *const RayTracingPipelineCreateInfoNV<'_>, p_allocator: *const AllocationCallbacks, p_pipelines: *mut Pipeline, ) -> Result<Result, CallError>
Call vkCreateRayTracingPipelinesNV using this context’s cached function pointer.

Contract

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

Fnvk::create_render_pass

pub unsafe fn create_render_pass( device: &Device, create_info: &RenderPassCreateInfo<'_>, allocator: Option<&AllocationCallbacks>, ) -> Result<RenderPass, CallError>
Call vkCreateRenderPass using this context’s cached function pointer.

Contract

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

Fnvk::create_render_pass2

pub unsafe fn create_render_pass2( device: &Device, create_info: &RenderPassCreateInfo2<'_>, allocator: Option<&AllocationCallbacks>, ) -> Result<RenderPass, CallError>
Call vkCreateRenderPass2 using this context’s cached function pointer.

Contract

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

Fnvk::create_render_pass2_khr

pub unsafe fn create_render_pass2_khr( device: &Device, create_info: &RenderPassCreateInfo2<'_>, allocator: Option<&AllocationCallbacks>, ) -> Result<RenderPass, CallError>
Call vkCreateRenderPass2KHR using this context’s cached function pointer.

Contract

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

Fnvk::create_sampler

pub unsafe fn create_sampler( device: &Device, create_info: &SamplerCreateInfo<'_>, allocator: Option<&AllocationCallbacks>, ) -> Result<Sampler, CallError>
Call vkCreateSampler using this context’s cached function pointer.

Contract

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

Fnvk::create_sampler_ycbcr_conversion

pub unsafe fn create_sampler_ycbcr_conversion( device: &Device, create_info: &SamplerYcbcrConversionCreateInfo<'_>, allocator: Option<&AllocationCallbacks>, ) -> Result<SamplerYcbcrConversion, CallError>
Call vkCreateSamplerYcbcrConversion using this context’s cached function pointer.

Contract

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

Fnvk::create_sampler_ycbcr_conversion_khr

pub unsafe fn create_sampler_ycbcr_conversion_khr( device: &Device, create_info: &SamplerYcbcrConversionCreateInfo<'_>, allocator: Option<&AllocationCallbacks>, ) -> Result<SamplerYcbcrConversion, CallError>
Call vkCreateSamplerYcbcrConversionKHR using this context’s cached function pointer.

Contract

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

Fnvk::create_screen_surface_qnx

pub unsafe fn create_screen_surface_qnx( instance: &Instance, p_create_info: *const ScreenSurfaceCreateInfoQNX<'_>, p_allocator: *const AllocationCallbacks, p_surface: *mut SurfaceKHR, ) -> Result<Result, CallError>
Call vkCreateScreenSurfaceQNX using this context’s cached function pointer.

Contract

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

Fnvk::create_semaphore

pub unsafe fn create_semaphore( device: &Device, create_info: &SemaphoreCreateInfo<'_>, allocator: Option<&AllocationCallbacks>, ) -> Result<Semaphore, CallError>
Call vkCreateSemaphore using this context’s cached function pointer.

Contract

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

Fnvk::create_shader_instrumentation_arm

pub unsafe fn create_shader_instrumentation_arm( device: &Device, p_create_info: *const ShaderInstrumentationCreateInfoARM<'_>, p_allocator: *const AllocationCallbacks, p_instrumentation: *mut ShaderInstrumentationARM, ) -> Result<Result, CallError>
Call vkCreateShaderInstrumentationARM using this context’s cached function pointer.

Contract

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

Fnvk::create_shader_module

pub unsafe fn create_shader_module( device: &Device, create_info: &ShaderModuleCreateInfo<'_>, allocator: Option<&AllocationCallbacks>, ) -> Result<ShaderModule, CallError>
Call vkCreateShaderModule using this context’s cached function pointer.

Contract

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

Fnvk::create_shaders_ext

pub unsafe fn create_shaders_ext( device: &Device, create_info_count: u32, p_create_infos: *const ShaderCreateInfoEXT<'_>, p_allocator: *const AllocationCallbacks, p_shaders: *mut ShaderEXT, ) -> Result<Result, CallError>
Call vkCreateShadersEXT using this context’s cached function pointer.

Contract

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

Fnvk::create_shared_swapchains_khr

pub unsafe fn create_shared_swapchains_khr( device: &Device, swapchain_count: u32, p_create_infos: *const SwapchainCreateInfoKHR<'_>, p_allocator: *const AllocationCallbacks, p_swapchains: *mut SwapchainKHR, ) -> Result<Result, CallError>
Call vkCreateSharedSwapchainsKHR using this context’s cached function pointer.

Contract

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

Fnvk::create_stream_descriptor_surface_ggp

pub unsafe fn create_stream_descriptor_surface_ggp( instance: &Instance, p_create_info: *const StreamDescriptorSurfaceCreateInfoGGP<'_>, p_allocator: *const AllocationCallbacks, p_surface: *mut SurfaceKHR, ) -> Result<Result, CallError>
Call vkCreateStreamDescriptorSurfaceGGP using this context’s cached function pointer.

Contract

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

Fnvk::create_surface_ohos

pub unsafe fn create_surface_ohos( instance: &Instance, p_create_info: *const SurfaceCreateInfoOHOS<'_>, p_allocator: *const AllocationCallbacks, p_surface: *mut SurfaceKHR, ) -> Result<Result, CallError>
Call vkCreateSurfaceOHOS using this context’s cached function pointer.

Contract

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

Fnvk::create_swapchain_khr

pub unsafe fn create_swapchain_khr( device: &Device, p_create_info: *const SwapchainCreateInfoKHR<'_>, p_allocator: *const AllocationCallbacks, p_swapchain: *mut SwapchainKHR, ) -> Result<Result, CallError>
Call vkCreateSwapchainKHR using this context’s cached function pointer.

Contract

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