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

# D3D12_DESCRIPTOR_HEAP_FLAGS (XBOX One 系列)

> 指定描述元堆積的選項。

指定描述元堆積的選項。

## 語法

```cpp theme={null}
typedef enum D3D12_DESCRIPTOR_HEAP_FLAGS
{  
    D3D12_DESCRIPTOR_HEAP_FLAG_NONE = 0x0,  
    D3D12_DESCRIPTOR_HEAP_FLAG_SHADER_VISIBLE = 0x1  
} D3D12_DESCRIPTOR_HEAP_FLAGS  
```

## 常數

| 常數 | 描述 |
| - | - |
| D3D12\_DESCRIPTOR\_HEAP\_FLAG\_NONE | 堆積的預設用法。 |
| D3D12\_DESCRIPTOR\_HEAP\_FLAG\_SHADER\_VISIBLE | 指定描述元堆積要表示它已繫結在命令清單上，以供著色器參考。 |

## 備註

未使用 **D3D12\_DESCRIPTOR\_HEAP\_FLAG\_SHADER\_VISIBLE** 旗標建立的[描述元堆積](https://learn.microsoft.com/en-us/windows/desktop/direct3d12/descriptor-heaps)，可讓應用程式選擇先在 CPU 記憶體中暫存描述元，再將其複製到著色器可見的描述元堆積。遊戲也可以直接在著色器可見的描述元堆積中建立描述元，而不需要在 CPU 記憶體中暫存描述元。

此旗標僅適用於 CBV、SRV、UAV 和取樣器。它不適用於其他描述元堆積類型，因為著色器不會直接參考其他類型。

[D3D12\_DESCRIPTOR\_HEAP\_DESC](https://learn.microsoft.com/en-us/windows/desktop/api/d3d12/ns-d3d12-d3d12_descriptor_heap_desc) 結構會使用此列舉。

## 需求

**標頭：** d3d12\_x.h

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

## 另請參閱

[d3d12\_x](/zh-TW/reference/graphics/d3d12_x/d3d12_x_members)


## Related topics

- [NDA 主題目錄 - Microsoft Learn 線上連結](/zh-TW/nda/nda-topic-directory.md)
- [D3D12_DESCRIPTOR_HEAP_DESC](/zh-TW/reference/graphics/d3d12/structs/d3d12_descriptor_heap_desc_public.md)
- [D3D12_DESCRIPTOR_HEAP_TYPE](/zh-TW/reference/graphics/d3d12/enums/d3d12_descriptor_heap_type_public.md)
- [D3D12_DESCRIPTOR_RANGE_FLAGS](/zh-TW/reference/graphics/d3d12/enums/d3d12_descriptor_range_flags_public.md)
- [D3D12_ROOT_DESCRIPTOR_FLAGS](/zh-TW/reference/graphics/d3d12/enums/d3d12_root_descriptor_flags_public.md)
