﻿# Vulkan acceleration references: distinguish object handles, AS addresses and storage buffers

Use the correct Vulkan acceleration reference for descriptor writes and instance builds, querying AS device addresses instead of assuming storage-buffer addresses are equivalent.

Author: Retrivium editorial team
Updated: 2026-11-04
Canonical URL: https://retrivium.ai/journal/fg2-vulkan-acceleration-handle-buffer-device-address/
Language: en

## Keep the identities separate

A Vulkan renderer manages an acceleration-structure object backed by buffer storage and referenced by descriptors or instance data. These relationships can tempt an application to store everything as an untyped integer called address. Preserve the API-level distinction. The object handle identifies a managed resource, while a device address serves particular device-side uses. The underlying buffer is storage; its location does not universally substitute for every acceleration reference expected elsewhere in the renderer.

## Query the acceleration address

The [device-address reference](https://docs.vulkan.org/refpages/latest/refpages/source/vkGetAccelerationStructureDeviceAddressKHR.html) describes obtaining the acceleration structure's device address. It explicitly notes that, for relevant non-generic structures, this address may differ from the storage buffer's device address plus its placement offset. Use the supported query instead of assuming equality because one test device happened to return matching values. Preserve the exact integer representation through application data and avoid conversions through a numerical type that can lose address bits.

## Follow the instance-build reference contract

The [instance reference](https://docs.vulkan.org/refpages/latest/refpages/source/VkAccelerationStructureInstanceKHR.html) distinguishes the reference used by device operations from the object reference used by host operations. Match the field value to the operation being performed. A copied instance array can contain valid-looking integers with the wrong interpretation if the builder path changes. Keep the source device and resource lifetime with the reference, and refresh dependent data when replacing the referenced acceleration resource rather than assuming an old value remains a durable scene identity.

## Write descriptors with the required objects

The [acceleration descriptor-write reference](https://docs.vulkan.org/refpages/latest/refpages/source/VkWriteDescriptorSetAccelerationStructureKHR.html) expects acceleration-structure handles and specifies compatible structure types. A device address is not a replacement for that handle array. Validate descriptor count, selected objects and the shader's intended top-level traversal resource separately from instance references to lower-level geometry. Sharing a similar storage type in a wrapper language does not remove the semantic distinction between those binding paths.

## Validate replacement and repeated scenes

Create a small scene, rebuild or replace its acceleration resources and verify that descriptors and instance data refer to the intended current objects. Exercise several allocations instead of checking only a first successful address. The guides to [GPU BVH traversal](/journal/learn-gpu-bvh-traversal/) and [renderer compatibility](/journal/gpu-llm-renderer-compatibility-matrix/) provide adjacent context. A clear integration uses typed roles and explicit queries, making stale references and wrong-address substitutions diagnosable without relying on accidental equality between resource handles and storage locations.
