Function Prototype

vkGetBufferOpaqueCaptureAddress

Query an opaque capture address of a buffer

To query a 64-bit buffer opaque capture address, call:

uint64_t vkGetBufferOpaqueCaptureAddressKHR(
    VkDevice device,
    const VkBufferDeviceAddressInfo* pInfo);
  • device is the logical device that the buffer was created on.
  • pInfo is a pointer to a VkBufferDeviceAddressInfo structure specifying the buffer to retrieve an address for.

The 64-bit return value is an opaque capture address of the start of pInfo→buffer.

If the buffer was created with a non-zero value of VkBufferOpaqueCaptureAddressCreateInfo::opaqueCaptureAddress the return value must be the same address.

Valid Usage

VUID-vkGetBufferOpaqueCaptureAddress-device-03327

If device was created with multiple physical devices, then the bufferDeviceAddressMultiDevice feature must be enabled

Valid Usage (Implicit)