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

> 描述根簽章 1.1 版的插槽。

描述根簽章 1.1 版的插槽。

## 語法

```cpp theme={null}
typedef struct D3D12_ROOT_PARAMETER1
{
    D3D12_ROOT_PARAMETER_TYPE ParameterType;
    D3D12_ROOT_DESCRIPTOR_TABLE1 DescriptorTable;
    D3D12_ROOT_CONSTANTS Constants;
    D3D12_ROOT_DESCRIPTOR1 Descriptor;
    D3D12_SHADER_VISIBILITY ShaderVisibility;
} D3D12_ROOT_PARAMETER1
```

### 成員

*ParameterType*\
類型：D3D12\_ROOT\_PARAMETER\_TYPE

[D3D12\_ROOT\_PARAMETER\_TYPE](/zh-TW/reference/graphics/d3d12/enums/d3d12_root_parameter_type_public) 類型的值，指定根簽章插槽的類型。此成員會決定要使用下方聯集中的哪一種類型。

*DescriptorTable*\
類型：D3D12\_ROOT\_DESCRIPTOR\_TABLE1

[D3D12\_ROOT\_DESCRIPTOR\_TABLE1](/zh-TW/reference/graphics/d3d12/structs/d3d12_root_descriptor_table1_public) 結構，將描述元表格的配置描述為在描述元堆積中依序出現的描述元範圍集合。

*Constants*\
類型：D3D12\_ROOT\_CONSTANTS

[D3D12\_ROOT\_CONSTANTS](/zh-TW/reference/graphics/d3d12/structs/d3d12_root_constants_public) 結構，描述根簽章中內嵌的常數，這些常數在著色器中會顯示為一個常數緩衝區。

*Descriptor*\
類型：D3D12\_ROOT\_DESCRIPTOR1

[D3D12\_ROOT\_DESCRIPTOR1](/zh-TW/reference/graphics/d3d12/structs/d3d12_root_descriptor1_public) 結構，描述根簽章中內嵌、會在著色器中顯示的描述元。

*ShaderVisibility*\
類型：D3D12\_SHADER\_VISIBILITY

[D3D12\_SHADER\_VISIBILITY](/zh-TW/reference/graphics/d3d12/enums/d3d12_shader_visibility_public) 類型的值，指定可存取根簽章插槽內容的著色器。

## 備註

將此結構搭配 [D3D12\_ROOT\_SIGNATURE\_DESC1](/zh-TW/reference/graphics/d3d12/structs/d3d12_root_signature_desc1_public) 結構使用。

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

## 需求

**標頭:** 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\_PARAMETER](/zh-TW/reference/graphics/d3d12/structs/d3d12_root_parameter_public)

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


## Related topics

- [D3D12_ROOT_DESCRIPTOR1](/zh-TW/reference/graphics/d3d12/structs/d3d12_root_descriptor1_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)
- [D3D12_ROOT_SIGNATURE_DESC1](/zh-TW/reference/graphics/d3d12/structs/d3d12_root_signature_desc1_public.md)
- [D3D12_ROOT_DESCRIPTOR](/zh-TW/reference/graphics/d3d12/structs/d3d12_root_descriptor_public.md)
