Realm

vk · Functions · G10

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

FnRustExperimental

Fnvk::get_physical_device_format_properties

pub unsafe fn get_physical_device_format_properties( instance: &Instance, physical_device: PhysicalDevice, format: Format, format_properties: &mut FormatProperties, ) -> Result<(), CallError>
Call vkGetPhysicalDeviceFormatProperties using this context’s cached function pointer.

Contract

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

Fnvk::get_physical_device_format_properties2

pub unsafe fn get_physical_device_format_properties2( instance: &Instance, physical_device: PhysicalDevice, format: Format, format_properties: &mut FormatProperties2<'_>, ) -> Result<(), CallError>
Call vkGetPhysicalDeviceFormatProperties2 using this context’s cached function pointer.

Contract

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

Fnvk::get_physical_device_format_properties2_khr

pub unsafe fn get_physical_device_format_properties2_khr( instance: &Instance, physical_device: PhysicalDevice, format: Format, format_properties: &mut FormatProperties2<'_>, ) -> Result<(), CallError>
Call vkGetPhysicalDeviceFormatProperties2KHR using this context’s cached function pointer.

Contract

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

Fnvk::get_physical_device_fragment_shading_rates_khr

pub unsafe fn get_physical_device_fragment_shading_rates_khr( instance: &Instance, physical_device: PhysicalDevice, p_fragment_shading_rate_count: *mut u32, p_fragment_shading_rates: *mut PhysicalDeviceFragmentShadingRateKHR<'_>, ) -> Result<Result, CallError>
Call vkGetPhysicalDeviceFragmentShadingRatesKHR using this context’s cached function pointer.

Contract

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

Fnvk::get_physical_device_image_format_properties

pub unsafe fn get_physical_device_image_format_properties( instance: &Instance, physical_device: PhysicalDevice, format: Format, type: ImageType, tiling: ImageTiling, usage: ImageUsageFlags, flags: ImageCreateFlags, image_format_properties: &mut ImageFormatProperties, ) -> Result<(), CallError>
Call vkGetPhysicalDeviceImageFormatProperties using this context’s cached function pointer.

Contract

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

Fnvk::get_physical_device_image_format_properties2

pub unsafe fn get_physical_device_image_format_properties2( instance: &Instance, physical_device: PhysicalDevice, image_format_info: &PhysicalDeviceImageFormatInfo2<'_>, image_format_properties: &mut ImageFormatProperties2<'_>, ) -> Result<(), CallError>
Call vkGetPhysicalDeviceImageFormatProperties2 using this context’s cached function pointer.

Contract

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

Fnvk::get_physical_device_image_format_properties2_khr

pub unsafe fn get_physical_device_image_format_properties2_khr( instance: &Instance, physical_device: PhysicalDevice, image_format_info: &PhysicalDeviceImageFormatInfo2<'_>, image_format_properties: &mut ImageFormatProperties2<'_>, ) -> Result<(), CallError>
Call vkGetPhysicalDeviceImageFormatProperties2KHR using this context’s cached function pointer.

Contract

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

Fnvk::get_physical_device_memory_properties

pub unsafe fn get_physical_device_memory_properties( instance: &Instance, physical_device: PhysicalDevice, ) -> Result<PhysicalDeviceMemoryProperties, CallError>
Query the memory heaps and memory types available to a physical device.

Contract

Query the memory heaps and memory types available to a physical device.

Safety

The instance must be live and physical_device must belong to it.

Khronos reference: vkGetPhysicalDeviceMemoryProperties

Fnvk::get_physical_device_memory_properties2

pub unsafe fn get_physical_device_memory_properties2( instance: &Instance, physical_device: PhysicalDevice, memory_properties: &mut PhysicalDeviceMemoryProperties2<'_>, ) -> Result<(), CallError>
Call vkGetPhysicalDeviceMemoryProperties2 using this context’s cached function pointer.

Contract

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

Fnvk::get_physical_device_memory_properties2_khr

pub unsafe fn get_physical_device_memory_properties2_khr( instance: &Instance, physical_device: PhysicalDevice, memory_properties: &mut PhysicalDeviceMemoryProperties2<'_>, ) -> Result<(), CallError>
Call vkGetPhysicalDeviceMemoryProperties2KHR using this context’s cached function pointer.

Contract

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

Fnvk::get_physical_device_multisample_properties_ext

pub unsafe fn get_physical_device_multisample_properties_ext( instance: &Instance, physical_device: PhysicalDevice, samples: SampleCountFlagBits, p_multisample_properties: *mut MultisamplePropertiesEXT<'_>, ) -> Result<(), CallError>
Call vkGetPhysicalDeviceMultisamplePropertiesEXT using this context’s cached function pointer.

Contract

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

Fnvk::get_physical_device_optical_flow_image_formats_nv

pub unsafe fn get_physical_device_optical_flow_image_formats_nv( instance: &Instance, physical_device: PhysicalDevice, p_optical_flow_image_format_info: *const OpticalFlowImageFormatInfoNV<'_>, p_format_count: *mut u32, p_image_format_properties: *mut OpticalFlowImageFormatPropertiesNV<'_>, ) -> Result<Result, CallError>
Call vkGetPhysicalDeviceOpticalFlowImageFormatsNV using this context’s cached function pointer.

Contract

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

Fnvk::get_physical_device_present_rectangles_khr

pub unsafe fn get_physical_device_present_rectangles_khr( instance: &Instance, physical_device: PhysicalDevice, surface: SurfaceKHR, p_rect_count: *mut u32, p_rects: *mut Rect2D, ) -> Result<Result, CallError>
Call vkGetPhysicalDevicePresentRectanglesKHR using this context’s cached function pointer.

Contract

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

Fnvk::get_physical_device_properties

pub unsafe fn get_physical_device_properties( instance: &Instance, physical_device: PhysicalDevice, ) -> Result<PhysicalDeviceProperties, CallError>
Query properties of a physical device (name, driver version, limits, …).

Contract

Query properties of a physical device (name, driver version, limits, …).

Safety

The instance must be live and physical_device must belong to it.

Khronos reference: vkGetPhysicalDeviceProperties

Fnvk::get_physical_device_properties2

pub unsafe fn get_physical_device_properties2( instance: &Instance, physical_device: PhysicalDevice, properties: &mut PhysicalDeviceProperties2<'_>, ) -> Result<(), CallError>
Call vkGetPhysicalDeviceProperties2 using this context’s cached function pointer.

Contract

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

Fnvk::get_physical_device_properties2_khr

pub unsafe fn get_physical_device_properties2_khr( instance: &Instance, physical_device: PhysicalDevice, properties: &mut PhysicalDeviceProperties2<'_>, ) -> Result<(), CallError>
Call vkGetPhysicalDeviceProperties2KHR using this context’s cached function pointer.

Contract

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