Realm

vk · Functions · G6

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

FnRustExperimental

Fnvk::get_gpa_session_status_amd

pub unsafe fn get_gpa_session_status_amd( device: &Device, gpa_session: GpaSessionAMD, ) -> Result<Result, CallError>
Call vkGetGpaSessionStatusAMD using this context’s cached function pointer.

Contract

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

Fnvk::get_image_drm_format_modifier_properties_ext

pub unsafe fn get_image_drm_format_modifier_properties_ext( device: &Device, image: Image, p_properties: *mut ImageDrmFormatModifierPropertiesEXT<'_>, ) -> Result<Result, CallError>
Call vkGetImageDrmFormatModifierPropertiesEXT using this context’s cached function pointer.

Contract

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

Fnvk::get_image_memory_requirements

pub unsafe fn get_image_memory_requirements( device: &Device, image: Image, memory_requirements: &mut MemoryRequirements, ) -> Result<(), CallError>
Call vkGetImageMemoryRequirements using this context’s cached function pointer.

Contract

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

Fnvk::get_image_memory_requirements2

pub unsafe fn get_image_memory_requirements2( device: &Device, info: &ImageMemoryRequirementsInfo2<'_>, memory_requirements: &mut MemoryRequirements2<'_>, ) -> Result<(), CallError>
Call vkGetImageMemoryRequirements2 using this context’s cached function pointer.

Contract

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

Fnvk::get_image_memory_requirements2_khr

pub unsafe fn get_image_memory_requirements2_khr( device: &Device, info: &ImageMemoryRequirementsInfo2<'_>, memory_requirements: &mut MemoryRequirements2<'_>, ) -> Result<(), CallError>
Call vkGetImageMemoryRequirements2KHR using this context’s cached function pointer.

Contract

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

Fnvk::get_image_opaque_capture_data_ext

pub unsafe fn get_image_opaque_capture_data_ext( device: &Device, image_count: u32, p_images: *const Image, p_datas: *mut HostAddressRangeEXT<'_>, ) -> Result<Result, CallError>
Call vkGetImageOpaqueCaptureDataEXT using this context’s cached function pointer.

Contract

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

Fnvk::get_image_opaque_capture_descriptor_data_ext

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

Contract

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

Fnvk::get_image_sparse_memory_requirements

pub unsafe fn get_image_sparse_memory_requirements( device: &Device, image: Image, ) -> Result<Vec<SparseImageMemoryRequirements>, CallError>
Call vkGetImageSparseMemoryRequirements using this context’s cached function pointer.

Contract

Call vkGetImageSparseMemoryRequirements 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 vkGetImageSparseMemoryRequirements valid usage, enabled API/extension/feature, pointer-chain lifetime, callback compatibility and host/GPU synchronization requirements. Native resources require explicit destruction after completion.

Retries incomplete/growing results with a bounded budget; returns an error if the query does not stabilize. Allocates the returned vector.

Khronos reference: vkGetImageSparseMemoryRequirements

Fnvk::get_image_sparse_memory_requirements2

pub unsafe fn get_image_sparse_memory_requirements2( device: &Device, info: &ImageSparseMemoryRequirementsInfo2<'_>, sparse_memory_requirement_count: &mut u32, sparse_memory_requirements: Option<&mut [SparseImageMemoryRequirements2<'_>]>, ) -> Result<(), CallError>
Call vkGetImageSparseMemoryRequirements2 using this context’s cached function pointer.

Contract

Call vkGetImageSparseMemoryRequirements2 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 vkGetImageSparseMemoryRequirements2 valid usage, enabled API/extension/feature, pointer-chain lifetime, callback compatibility and host/GPU synchronization requirements. Native resources require explicit destruction after completion.

Pass None to query the count, or Some with fully initialized output records and live, valid output chains. The slice length supplies native capacity; count receives the native number available/written. Some(empty) is a zero- capacity fill, not a count query. No allocation, retry, header reset or chain replacement occurs. Handle INCOMPLETE (result queries) or re-query for growth (void queries) explicitly. Output contents after native errors follow Vulkan.

Khronos reference: vkGetImageSparseMemoryRequirements2

Fnvk::get_image_sparse_memory_requirements2_khr

pub unsafe fn get_image_sparse_memory_requirements2_khr( device: &Device, info: &ImageSparseMemoryRequirementsInfo2<'_>, sparse_memory_requirement_count: &mut u32, sparse_memory_requirements: Option<&mut [SparseImageMemoryRequirements2<'_>]>, ) -> Result<(), CallError>
Call vkGetImageSparseMemoryRequirements2KHR using this context’s cached function pointer.

Contract

Call vkGetImageSparseMemoryRequirements2KHR 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 vkGetImageSparseMemoryRequirements2KHR valid usage, enabled API/extension/feature, pointer-chain lifetime, callback compatibility and host/GPU synchronization requirements. Native resources require explicit destruction after completion.

Pass None to query the count, or Some with fully initialized output records and live, valid output chains. The slice length supplies native capacity; count receives the native number available/written. Some(empty) is a zero- capacity fill, not a count query. No allocation, retry, header reset or chain replacement occurs. Handle INCOMPLETE (result queries) or re-query for growth (void queries) explicitly. Output contents after native errors follow Vulkan.

Khronos reference: vkGetImageSparseMemoryRequirements2KHR

Fnvk::get_image_subresource_layout

pub unsafe fn get_image_subresource_layout( device: &Device, image: Image, subresource: &ImageSubresource, layout: &mut SubresourceLayout, ) -> Result<(), CallError>
Call vkGetImageSubresourceLayout using this context’s cached function pointer.

Contract

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

Fnvk::get_image_subresource_layout2

pub unsafe fn get_image_subresource_layout2( device: &Device, image: Image, p_subresource: *const ImageSubresource2<'_>, p_layout: *mut SubresourceLayout2<'_>, ) -> Result<(), CallError>
Call vkGetImageSubresourceLayout2 using this context’s cached function pointer.

Contract

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

Fnvk::get_image_subresource_layout2_ext

pub unsafe fn get_image_subresource_layout2_ext( device: &Device, image: Image, p_subresource: *const ImageSubresource2<'_>, p_layout: *mut SubresourceLayout2<'_>, ) -> Result<(), CallError>
Call vkGetImageSubresourceLayout2EXT using this context’s cached function pointer.

Contract

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

Fnvk::get_image_subresource_layout2_khr

pub unsafe fn get_image_subresource_layout2_khr( device: &Device, image: Image, p_subresource: *const ImageSubresource2<'_>, p_layout: *mut SubresourceLayout2<'_>, ) -> Result<(), CallError>
Call vkGetImageSubresourceLayout2KHR using this context’s cached function pointer.

Contract

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

Fnvk::get_image_view_address_nvx

pub unsafe fn get_image_view_address_nvx( device: &Device, image_view: ImageView, p_properties: *mut ImageViewAddressPropertiesNVX<'_>, ) -> Result<Result, CallError>
Call vkGetImageViewAddressNVX using this context’s cached function pointer.

Contract

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

Fnvk::get_image_view_handle64_nvx

pub unsafe fn get_image_view_handle64_nvx( device: &Device, p_info: *const ImageViewHandleInfoNVX<'_>, ) -> Result<u64, CallError>
Call vkGetImageViewHandle64NVX using this context’s cached function pointer.

Contract

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