Skip to main content
This method returns the GPU virtual address of a buffer resource.

Syntax

Parameters

Return value

Type: D3D12_GPU_VIRTUAL_ADDRESS This method returns the GPU virtual address. D3D12_GPU_VIRTUAL_ADDRESS is a typedef’d synonym of UINT64.

Remarks

This method is only useful for buffer resources, it will return zero for all texture resources. For more information on the use of GPU virtual addresses, refer to Indirect Drawing.

Examples

The D3D1211on12 sample uses ID3D12Resource::GetGPUVirtualAddress as follows:
Refer to the Example Code in the D3D12 Reference.

Requirements

Header: d3d12_xs.h or d3d12_x.h
Library: d3d12_xs.lib or d3d12_x.lib
Supported Platforms: XBOX Series consoles and XBOX One family

See Also

ID3D12Resource
Last modified on August 20, 2026