Realm

vk · Functions · C26

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

FnRustExperimental

Fnvk::create_tensor_arm

pub unsafe fn create_tensor_arm( device: &Device, p_create_info: *const TensorCreateInfoARM<'_>, p_allocator: *const AllocationCallbacks, p_tensor: *mut TensorARM, ) -> Result<Result, CallError>
Call vkCreateTensorARM using this context’s cached function pointer.

Contract

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

Fnvk::create_tensor_view_arm

pub unsafe fn create_tensor_view_arm( device: &Device, p_create_info: *const TensorViewCreateInfoARM<'_>, p_allocator: *const AllocationCallbacks, p_view: *mut TensorViewARM, ) -> Result<Result, CallError>
Call vkCreateTensorViewARM using this context’s cached function pointer.

Contract

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

Fnvk::create_ubm_surface_sec

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

Contract

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

Fnvk::create_validation_cache_ext

pub unsafe fn create_validation_cache_ext( device: &Device, p_create_info: *const ValidationCacheCreateInfoEXT<'_>, p_allocator: *const AllocationCallbacks, p_validation_cache: *mut ValidationCacheEXT, ) -> Result<Result, CallError>
Call vkCreateValidationCacheEXT using this context’s cached function pointer.

Contract

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

Fnvk::create_vi_surface_nn

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

Contract

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

Fnvk::create_video_session_khr

pub unsafe fn create_video_session_khr( device: &Device, p_create_info: *const VideoSessionCreateInfoKHR<'_>, p_allocator: *const AllocationCallbacks, p_video_session: *mut VideoSessionKHR, ) -> Result<Result, CallError>
Call vkCreateVideoSessionKHR using this context’s cached function pointer.

Contract

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

Fnvk::create_video_session_parameters_khr

pub unsafe fn create_video_session_parameters_khr( device: &Device, p_create_info: *const VideoSessionParametersCreateInfoKHR<'_>, p_allocator: *const AllocationCallbacks, p_video_session_parameters: *mut VideoSessionParametersKHR, ) -> Result<Result, CallError>
Call vkCreateVideoSessionParametersKHR using this context’s cached function pointer.

Contract

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

Fnvk::create_wayland_surface_khr

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

Contract

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

Fnvk::create_win32_surface_khr

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

Contract

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

Fnvk::create_xcb_surface_khr

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

Contract

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

Fnvk::create_xlib_surface_khr

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

Contract

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