vk · Functions · G1
16 public declarations with native signatures and source-owned contracts.
Fnvk::get_acceleration_structure_build_sizes_khr
pub unsafe fn get_acceleration_structure_build_sizes_khr(
device: &Device,
build_type: AccelerationStructureBuildTypeKHR,
p_build_info: *const AccelerationStructureBuildGeometryInfoKHR<'_>,
p_max_primitive_counts: *const u32,
p_size_info: *mut AccelerationStructureBuildSizesInfoKHR<'_>,
) -> Result<(), CallError>Contract
Call vkGetAccelerationStructureBuildSizesKHR 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 vkGetAccelerationStructureBuildSizesKHR 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.
Fnvk::get_acceleration_structure_device_address_khr
Contract
Call vkGetAccelerationStructureDeviceAddressKHR 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 vkGetAccelerationStructureDeviceAddressKHR 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: vkGetAccelerationStructureDeviceAddressKHR
Fnvk::get_acceleration_structure_handle_nv
Contract
Call vkGetAccelerationStructureHandleNV 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 vkGetAccelerationStructureHandleNV 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.
Fnvk::get_acceleration_structure_memory_requirements_nv
Contract
Call vkGetAccelerationStructureMemoryRequirementsNV 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 vkGetAccelerationStructureMemoryRequirementsNV 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: vkGetAccelerationStructureMemoryRequirementsNV
Fnvk::get_acceleration_structure_opaque_capture_descriptor_data_ext
Contract
Call vkGetAccelerationStructureOpaqueCaptureDescriptorDataEXT 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 vkGetAccelerationStructureOpaqueCaptureDescriptorDataEXT 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: vkGetAccelerationStructureOpaqueCaptureDescriptorDataEXT
Fnvk::get_android_hardware_buffer_properties_android
Contract
Call vkGetAndroidHardwareBufferPropertiesANDROID 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 vkGetAndroidHardwareBufferPropertiesANDROID 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: vkGetAndroidHardwareBufferPropertiesANDROID
Fnvk::get_buffer_collection_properties_fuchsia
Contract
Call vkGetBufferCollectionPropertiesFUCHSIA 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 vkGetBufferCollectionPropertiesFUCHSIA 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.
Fnvk::get_buffer_device_address
Contract
Call vkGetBufferDeviceAddress using this context’s cached function pointer.
Errors
Reports a missing command; the native scalar is never converted to a status.
Safety
The context and all handles must be live and belong to the same Vulkan
implementation/device. Meet vkGetBufferDeviceAddress valid usage, enabled API/extension/feature,
pointer-chain lifetime, callback compatibility and host/GPU synchronization
requirements. Native resources require explicit destruction after completion.
Returns the native 64-bit value unchanged, including zero. This is not a VkResult status; opaque capture values are tokens, not dereferenceable addresses. This call neither owns memory nor establishes its lifetime or device accessibility.
Fnvk::get_buffer_device_address_ext
Contract
Call vkGetBufferDeviceAddressEXT using this context’s cached function pointer.
Errors
Reports a missing command; the native scalar is never converted to a status.
Safety
The context and all handles must be live and belong to the same Vulkan
implementation/device. Meet vkGetBufferDeviceAddressEXT valid usage, enabled API/extension/feature,
pointer-chain lifetime, callback compatibility and host/GPU synchronization
requirements. Native resources require explicit destruction after completion.
Returns the native 64-bit value unchanged, including zero. This is not a VkResult status; opaque capture values are tokens, not dereferenceable addresses. This call neither owns memory nor establishes its lifetime or device accessibility.
Fnvk::get_buffer_device_address_khr
Contract
Call vkGetBufferDeviceAddressKHR using this context’s cached function pointer.
Errors
Reports a missing command; the native scalar is never converted to a status.
Safety
The context and all handles must be live and belong to the same Vulkan
implementation/device. Meet vkGetBufferDeviceAddressKHR valid usage, enabled API/extension/feature,
pointer-chain lifetime, callback compatibility and host/GPU synchronization
requirements. Native resources require explicit destruction after completion.
Returns the native 64-bit value unchanged, including zero. This is not a VkResult status; opaque capture values are tokens, not dereferenceable addresses. This call neither owns memory nor establishes its lifetime or device accessibility.
Fnvk::get_buffer_memory_requirements
Contract
Query the memory requirements of a buffer (size, alignment, type bits).
Safety
buffer must be a live handle created from this device.
Fnvk::get_buffer_memory_requirements2
Contract
Call vkGetBufferMemoryRequirements2 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 vkGetBufferMemoryRequirements2 valid usage, enabled API/extension/feature,
pointer-chain lifetime, callback compatibility and host/GPU synchronization
requirements. Native resources require explicit destruction after completion.
Fnvk::get_buffer_memory_requirements2_khr
Contract
Call vkGetBufferMemoryRequirements2KHR 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 vkGetBufferMemoryRequirements2KHR valid usage, enabled API/extension/feature,
pointer-chain lifetime, callback compatibility and host/GPU synchronization
requirements. Native resources require explicit destruction after completion.
Fnvk::get_buffer_opaque_capture_address
Contract
Call vkGetBufferOpaqueCaptureAddress using this context’s cached function pointer.
Errors
Reports a missing command; the native scalar is never converted to a status.
Safety
The context and all handles must be live and belong to the same Vulkan
implementation/device. Meet vkGetBufferOpaqueCaptureAddress valid usage, enabled API/extension/feature,
pointer-chain lifetime, callback compatibility and host/GPU synchronization
requirements. Native resources require explicit destruction after completion.
Returns the native 64-bit value unchanged, including zero. This is not a VkResult status; opaque capture values are tokens, not dereferenceable addresses. This call neither owns memory nor establishes its lifetime or device accessibility.
Fnvk::get_buffer_opaque_capture_address_khr
Contract
Call vkGetBufferOpaqueCaptureAddressKHR using this context’s cached function pointer.
Errors
Reports a missing command; the native scalar is never converted to a status.
Safety
The context and all handles must be live and belong to the same Vulkan
implementation/device. Meet vkGetBufferOpaqueCaptureAddressKHR valid usage, enabled API/extension/feature,
pointer-chain lifetime, callback compatibility and host/GPU synchronization
requirements. Native resources require explicit destruction after completion.
Returns the native 64-bit value unchanged, including zero. This is not a VkResult status; opaque capture values are tokens, not dereferenceable addresses. This call neither owns memory nor establishes its lifetime or device accessibility.
Fnvk::get_buffer_opaque_capture_descriptor_data_ext
Contract
Call vkGetBufferOpaqueCaptureDescriptorDataEXT 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 vkGetBufferOpaqueCaptureDescriptorDataEXT 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: vkGetBufferOpaqueCaptureDescriptorDataEXT