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

# XG_RELINQUISH_MAPPING_FLAGS (XBOX One 系列)

> 用於控制 XGMemoryLayoutEngine::RelinquishMapping 的旗標，例如是否要保留 ESRAM 分頁和系統記憶體分頁的對應。

用於控制 [XGMemoryLayoutEngine::RelinquishMapping](/zh-TW/reference/graphics/xgmemory_NR/interfaces/XGMemoryLayout/methods/xgmemorylayout_relinquishmapping) 的旗標，例如是否要保留 ESRAM 分頁和系統記憶體分頁的對應。

<a id="syntaxSection" />

## 語法

```cpp theme={null}
enum XG_RELINQUISH_MAPPING_FLAGS
{
    XG_RELINQUISH_MAPPING_PRESERVE_ESRAM_PAGES = 1,
    XG_RELINQUISH_MAPPING_PRESERVE_SYSTEM_MEMORY_PAGES = 2,  
}  
```

<a id="ID4E2" />

## 常數

| 常數 | 描述 |
| - | - |
| XG\_RELINQUISH\_MAPPING\_PRESERVE\_ESRAM\_PAGES | 保留 ESRAM 分頁的對應。 |
| XG\_RELINQUISH\_MAPPING\_PRESERVE\_SYSTEM\_MEMORY\_PAGES | 保留系統記憶體分頁的對應。 |

<a id="remarks" />

## 備註

此列舉由 [XGMemoryLayout::RelinquishMapping](/zh-TW/reference/graphics/xgmemory_NR/interfaces/XGMemoryLayout/methods/xgmemorylayout_relinquishmapping) 的 *Flags* 參數使用。

它用於一組以位元 OR 組合的旗標中，指出方法應作用於 ESRAM 分頁、系統分頁或兩者 (依 `RelinquishMapping` 保留它們，或依 `CopyMapping` 取代它們。)

`XG_RELINQUISH_MAPPING_FLAGS` 列舉之於 `XGMemoryLayout::RelinquishMapping`，就如同 [XG\_COPY\_MAPPING\_FLAGS](/zh-TW/reference/graphics/xgmemory_NR/enums/xg_copy_mapping_flags) 列舉之於 [XGMemoryLayout::CopyMapping](/zh-TW/reference/graphics/xgmemory_NR/interfaces/XGMemoryLayout/methods/xgmemorylayout_copymapping)。

<a id="requirements" />

## 需求

**標頭:** xgmemory.h

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

## 另請參閱

[xgmemory](/zh-TW/reference/graphics/xgmemory_NR/xgmemory_members)


## Related topics

- [NDA topic directory - live Microsoft Learn links](/nda/nda-topic-directory.md)
- [D3D12_TILE_MAPPING_FLAGS](/zh-CN/reference/graphics/d3d12/enums/d3d12_tile_mapping_flags_public.md)
- [Répertoire des rubriques NDA : liens actifs vers Microsoft Learn](/fr-CA/nda/nda-topic-directory.md)
- [Directorio de temas NDA: enlaces activos a Microsoft Learn](/es/nda/nda-topic-directory.md)
- [NDA 主題目錄 - Microsoft Learn 線上連結](/zh-TW/nda/nda-topic-directory.md)
