> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# GetGpuCurrentAddress (XBOX One 系列)

> 以 XG_GPU_VIRTUAL_ADDRESS (UINT64) 傳回此配置在建構期間的目前虛擬位址。

# XGMemoryLayout::GetGpuCurrentAddress 方法 (XBOX One 系列)

以 XG\_GPU\_VIRTUAL\_ADDRESS (UINT64) 傳回此配置在建構期間的目前虛擬位址。

<a id="syntaxSection" />

## 語法

```cpp theme={null}
XG_GPU_VIRTUAL_ADDRESS GetGpuCurrentAddress(  
)  
```

<a id="ID4EP" />

### 傳回值

類型: XG\_GPU\_VIRTUAL\_ADDRESS

此配置在建構期間的目前 GPU 虛擬位址。

<a id="remarks" />

## 備註

傳回此配置在建構期間的目前 GPU 虛擬位址。呼叫下列 **Map** API 會遞增目前位址:

* [XGMemoryLayout::MapFromPattern](/zh-TW/reference/graphics/xgmemory_NR/interfaces/XGMemoryLayout/methods/xgmemorylayout_mapfrompattern)
* [XGMemoryLayout::MapPagePriorityArray](/zh-TW/reference/graphics/xgmemory_NR/interfaces/XGMemoryLayout/methods/xgmemorylayout_mappagepriorityarray)
* [XGMemoryLayout::MapRunLengthArray](/zh-TW/reference/graphics/xgmemory_NR/interfaces/XGMemoryLayout/methods/xgmemorylayout_maprunlengtharray)
* [XGMemoryLayout::MapSimple](/zh-TW/reference/graphics/xgmemory_NR/interfaces/XGMemoryLayout/methods/xgmemorylayout_mapsimple)

<a id="requirements" />

## 需求

**標頭:** xgmemory.h

<a id="ID4E3B" />

**支援的平台:** XBOX One 系列

## 另請參閱

[XGMemoryLayout](/zh-TW/reference/graphics/xgmemory_NR/interfaces/XGMemoryLayout/xgmemorylayout)


## Related topics

- [D3D12_GPU_VIRTUAL_ADDRESS_RANGE](/zh-CN/reference/graphics/d3d12/structs/d3d12_gpu_virtual_address_range_public.md)
- [D3D12_GPU_VIRTUAL_ADDRESS_AND_STRIDE](/zh-CN/reference/graphics/d3d12/structs/d3d12_gpu_virtual_address_and_stride_public.md)
- [D3D12_GPU_VIRTUAL_ADDRESS_RANGE_AND_STRIDE](/zh-CN/reference/graphics/d3d12/structs/d3d12_gpu_virtual_address_range_and_stride_public.md)
- [D3D12_FEATURE_DATA_GPU_VIRTUAL_ADDRESS_SUPPORT](/zh-CN/reference/graphics/d3d12/structs/d3d12_feature_data_gpu_virtual_address_support_public.md)
- [NDA topic directory - live Microsoft Learn links](/nda/nda-topic-directory.md)
