Realm

vk · Functions · G14

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

FnRustExperimental

Fnvk::get_ray_tracing_shader_group_handles_nv

pub unsafe fn get_ray_tracing_shader_group_handles_nv( device: &Device, pipeline: Pipeline, first_group: u32, group_count: u32, data_size: usize, p_data: *mut c_void, ) -> Result<Result, CallError>
Call vkGetRayTracingShaderGroupHandlesNV using this context’s cached function pointer.

Contract

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

Fnvk::get_ray_tracing_shader_group_stack_size_khr

pub unsafe fn get_ray_tracing_shader_group_stack_size_khr( device: &Device, pipeline: Pipeline, group: u32, group_shader: ShaderGroupShaderKHR, ) -> Result<DeviceSize, CallError>
Call vkGetRayTracingShaderGroupStackSizeKHR using this context’s cached function pointer.

Contract

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

Fnvk::get_refresh_cycle_duration_google

pub unsafe fn get_refresh_cycle_duration_google( device: &Device, swapchain: SwapchainKHR, p_display_timing_properties: *mut RefreshCycleDurationGOOGLE, ) -> Result<Result, CallError>
Call vkGetRefreshCycleDurationGOOGLE using this context’s cached function pointer.

Contract

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

Fnvk::get_render_area_granularity

pub unsafe fn get_render_area_granularity( device: &Device, render_pass: RenderPass, granularity: &mut Extent2D, ) -> Result<(), CallError>
Call vkGetRenderAreaGranularity using this context’s cached function pointer.

Contract

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

Fnvk::get_rendering_area_granularity

pub unsafe fn get_rendering_area_granularity( device: &Device, p_rendering_area_info: *const RenderingAreaInfo<'_>, p_granularity: *mut Extent2D, ) -> Result<(), CallError>
Call vkGetRenderingAreaGranularity using this context’s cached function pointer.

Contract

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

Fnvk::get_rendering_area_granularity_khr

pub unsafe fn get_rendering_area_granularity_khr( device: &Device, p_rendering_area_info: *const RenderingAreaInfo<'_>, p_granularity: *mut Extent2D, ) -> Result<(), CallError>
Call vkGetRenderingAreaGranularityKHR using this context’s cached function pointer.

Contract

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

Fnvk::get_sampler_opaque_capture_descriptor_data_ext

pub unsafe fn get_sampler_opaque_capture_descriptor_data_ext( device: &Device, p_info: *const SamplerCaptureDescriptorDataInfoEXT<'_>, p_data: *mut c_void, ) -> Result<Result, CallError>
Call vkGetSamplerOpaqueCaptureDescriptorDataEXT using this context’s cached function pointer.

Contract

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

Fnvk::get_screen_buffer_properties_qnx

pub unsafe fn get_screen_buffer_properties_qnx( device: &Device, buffer: *const _screen_buffer, p_properties: *mut ScreenBufferPropertiesQNX<'_>, ) -> Result<Result, CallError>
Call vkGetScreenBufferPropertiesQNX using this context’s cached function pointer.

Contract

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

Fnvk::get_semaphore_counter_value

pub unsafe fn get_semaphore_counter_value( device: &Device, semaphore: Semaphore, value: &mut u64, ) -> Result<(), CallError>
Call vkGetSemaphoreCounterValue using this context’s cached function pointer.

Contract

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

Fnvk::get_semaphore_counter_value_khr

pub unsafe fn get_semaphore_counter_value_khr( device: &Device, semaphore: Semaphore, value: &mut u64, ) -> Result<(), CallError>
Call vkGetSemaphoreCounterValueKHR using this context’s cached function pointer.

Contract

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

Fnvk::get_semaphore_fd_khr

pub unsafe fn get_semaphore_fd_khr( device: &Device, p_get_fd_info: *const SemaphoreGetFdInfoKHR<'_>, p_fd: *mut i32, ) -> Result<Result, CallError>
Call vkGetSemaphoreFdKHR using this context’s cached function pointer.

Contract

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

Fnvk::get_semaphore_win32_handle_khr

pub unsafe fn get_semaphore_win32_handle_khr( device: &Device, p_get_win32_handle_info: *const SemaphoreGetWin32HandleInfoKHR<'_>, p_handle: *mut HANDLE, ) -> Result<Result, CallError>
Call vkGetSemaphoreWin32HandleKHR using this context’s cached function pointer.

Contract

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

Fnvk::get_semaphore_zircon_handle_fuchsia

pub unsafe fn get_semaphore_zircon_handle_fuchsia( device: &Device, p_get_zircon_handle_info: *const SemaphoreGetZirconHandleInfoFUCHSIA<'_>, p_zircon_handle: *mut zx_handle_t, ) -> Result<Result, CallError>
Call vkGetSemaphoreZirconHandleFUCHSIA using this context’s cached function pointer.

Contract

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

Fnvk::get_shader_binary_data_ext

pub unsafe fn get_shader_binary_data_ext( device: &Device, shader: ShaderEXT, p_data_size: *mut usize, p_data: *mut c_void, ) -> Result<Result, CallError>
Call vkGetShaderBinaryDataEXT using this context’s cached function pointer.

Contract

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

Fnvk::get_shader_info_amd

pub unsafe fn get_shader_info_amd( device: &Device, pipeline: Pipeline, shader_stage: ShaderStageFlagBits, info_type: ShaderInfoTypeAMD, p_info_size: *mut usize, p_info: *mut c_void, ) -> Result<Result, CallError>
Call vkGetShaderInfoAMD using this context’s cached function pointer.

Contract

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

Fnvk::get_shader_instrumentation_values_arm

pub unsafe fn get_shader_instrumentation_values_arm( device: &Device, instrumentation: ShaderInstrumentationARM, p_metric_block_count: *mut u32, p_metric_values: *mut c_void, flags: ShaderInstrumentationValuesFlagsARM, ) -> Result<Result, CallError>
Call vkGetShaderInstrumentationValuesARM using this context’s cached function pointer.

Contract

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