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

> 描述根簽章 1.1 版中內嵌、會在著色器中顯示的描述元。

描述根簽章 1.1 版中內嵌、會在著色器中顯示的描述元。

## 語法

```cpp theme={null}
typedef struct D3D12_ROOT_DESCRIPTOR1
{
    UINT ShaderRegister;
    UINT RegisterSpace;
    D3D12_ROOT_DESCRIPTOR_FLAGS Flags;
} D3D12_ROOT_DESCRIPTOR1
```

### 成員

*ShaderRegister*\
類型：UINT

著色器暫存器。

*RegisterSpace*\
類型：UINT

暫存器空間。

*Flags*\
類型：D3D12\_ROOT\_DESCRIPTOR\_FLAGS

指定 [D3D12\_ROOT\_DESCRIPTOR\_FLAGS](/zh-TW/reference/graphics/d3d12/enums/d3d12_root_descriptor_flags_public)，用來決定描述元及其所參考資料的變動性。

## 備註

**D3D12\_ROOT\_DESCRIPTOR1** 是 [D3D12\_ROOT\_PARAMETER1](/zh-TW/reference/graphics/d3d12/structs/d3d12_root_parameter1_public) 的 **Descriptor** 成員的資料類型。
當您將 **D3D12\_ROOT\_PARAMETER1** 的 **ParameterType** 欄位設定為 [D3D12\_ROOT\_PARAMETER\_TYPE](/zh-TW/reference/graphics/d3d12/enums/d3d12_root_parameter_type_public) 的 D3D12\_ROOT\_PARAMETER\_TYPE\_CBV、D3D12\_ROOT\_PARAMETER\_TYPE\_SRV 或 D3D12\_ROOT\_PARAMETER\_TYPE\_UAV 成員時，請使用 **D3D12\_ROOT\_DESCRIPTOR1**。

請參閱協助程式結構 [CD3DX12\_ROOT\_DESCRIPTOR1](https://learn.microsoft.com/en-us/windows/desktop/direct3d12/cd3dx12-root-descriptor1)。

## 需求

**標頭:** d3d12\_xs.h 或 d3d12\_x.h\
**程式庫:** d3d12\_xs.lib 或 d3d12\_x.lib\
**支援的平台**: XBOX Series 主機與 XBOX One 系列

## 另請參閱

[核心結構](https://learn.microsoft.com/en-us/windows/desktop/direct3d12/direct3d-12-structures)

[D3D12\_ROOT\_DESCRIPTOR](/zh-TW/reference/graphics/d3d12/structs/d3d12_root_descriptor_public)

[根簽章 1.1 版](https://learn.microsoft.com/en-us/windows/desktop/direct3d12/root-signature-version-1-1)


## Related topics

- [D3D12_ROOT_PARAMETER1](/zh-TW/reference/graphics/d3d12/structs/d3d12_root_parameter1_public.md)
- [D3D12_ROOT_DESCRIPTOR](/zh-TW/reference/graphics/d3d12/structs/d3d12_root_descriptor_public.md)
- [D3D12_ROOT_DESCRIPTOR_FLAGS](/zh-TW/reference/graphics/d3d12/enums/d3d12_root_descriptor_flags_public.md)
- [D3D12_ROOT_PARAMETER](/zh-TW/reference/graphics/d3d12/structs/d3d12_root_parameter_public.md)
- [D3D12_ROOT_DESCRIPTOR_TABLE1](/zh-TW/reference/graphics/d3d12/structs/d3d12_root_descriptor_table1_public.md)
