Skip to main content

get_buffer_device_address_ext

Function get_buffer_device_address_ext 

Source
pub unsafe fn get_buffer_device_address_ext(
    device: &Device,
    info: &BufferDeviceAddressInfo<'_>,
) -> Result<DeviceAddress, CallError>
Expand description

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.

Khronos reference: vkGetBufferDeviceAddressEXT