> ## 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.

# GetBaseAddress (XBOX One 系列)

> 以 **void** 指標傳回此配置的基底 GPU 虛擬位址。

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

以 **void** 指標傳回此配置的基底 GPU 虛擬位址。

<a id="syntaxSection" />

## 語法

```cpp theme={null}
void* GetBaseAddress(  
)  
```

<a id="ID4ES" />

### 傳回值

類型: void \*

此配置的基底 GPU 虛擬位址，以 **void** 指標表示。

<a id="remarks" />

## 備註

此方法會以 void 指標傳回記憶體配置的基底 GPU 虛擬位址。

相較之下，[XGMemoryLayout::GetGpuBaseAddress](/zh-TW/reference/graphics/xgmemory_NR/interfaces/XGMemoryLayout/methods/xgmemorylayout_getgpubaseaddress) 方法會傳回相同的值，但以 `XG_GPU_VIRTUAL_ADDRESS` 表示，這是具類型的 64 位元不帶正負號整數 (**UINT64**)。

`GetBaseAddress` 與 **GetGpuBaseAddress** 之間的互動，類似 [XGMemoryLayout::GetCurrentAddress](/zh-TW/reference/graphics/xgmemory_NR/interfaces/XGMemoryLayout/methods/xgmemorylayout_getcurrentaddress) 與 [XGMemoryLayout::GetGpuCurrentAddress](/zh-TW/reference/graphics/xgmemory_NR/interfaces/XGMemoryLayout/methods/xgmemorylayout_getgpucurrentaddress) 之間的互動。

<a id="requirements" />

## 需求

**標頭:** xgmemory.h

<a id="ID4EAB" />

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

## 另請參閱

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


## Related topics

- [GetGPUVirtualAddress](/zh-CN/reference/graphics/d3d12/interfaces/id3d12resource/methods/id3d12resource_getgpuvirtualaddress_public.md)
- [NDA 主題目錄 - Microsoft Learn 線上連結](/zh-TW/nda/nda-topic-directory.md)
- [ApuIsVirtualAddressValid](/zh-CN/reference/audio/apu/functions/apuisvirtualaddressvalid.md)
- [ApuMapApuAddress](/zh-CN/reference/audio/apu/functions/apumapapuaddress.md)
- [ApuMapVirtualAddress](/zh-CN/reference/audio/apu/functions/apumapvirtualaddress.md)
