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

> 定義將與相關聯著色器搭配使用的區域根簽章狀態子物件。

定義將與相關聯著色器搭配使用的區域根簽章狀態子物件。

## 語法

```cpp theme={null}
typedef struct D3D12_LOCAL_ROOT_SIGNATURE
{
    ID3D12RootSignature  pLocalRootSignature;
} D3D12_LOCAL_ROOT_SIGNATURE
```

### 成員

*pLocalRootSignature*\
類型：ID3D12RootSignature \*

將作為區域根簽章的根簽章。狀態物件會保留此簽章的參考。

## 備註

狀態物件中不一定要有此子物件。與任何指定著色器函式相關聯的全域和/或區域根簽章組合，必須定義著色器所宣告的所有資源繫結 (全域與區域根簽章之間不得重疊)。

如果呼叫圖形 (不計算跨著色器資料表的呼叫) 中的任何指定函式與特定區域根簽章相關聯，則圖形中的任何其他函式都必須與相同的區域根簽章相關聯或不與任何區域根簽章相關聯，而且著色器進入點 (呼叫圖形的根) 必須與該區域根簽章相關聯。這是因為從指定著色器進入點可到達的程式碼集合，會從著色器記錄中的著色器識別碼叫用，而該處套用單一一組區域根引數。當然，不同的著色器可以使用不同的區域根簽章 (或不使用)，因為它們的著色器識別碼會位於不同的著色器記錄中。

## 需求

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


## Related topics

- [D3D12_STATE_SUBOBJECT_TYPE](/zh-TW/reference/graphics/d3d12/enums/d3d12_state_subobject_type_public.md)
- [D3D12_ROOT_SIGNATURE_DESC](/zh-TW/reference/graphics/d3d12/structs/d3d12_root_signature_desc_public.md)
- [D3D12_VERSIONED_ROOT_SIGNATURE_DESC](/zh-TW/reference/graphics/d3d12/structs/d3d12_versioned_root_signature_desc_public.md)
- [D3D12_GLOBAL_ROOT_SIGNATURE](/zh-TW/reference/graphics/d3d12/structs/d3d12_global_root_signature_public.md)
- [D3D12SerializeRootSignature](/zh-TW/reference/graphics/d3d12/functions/d3d12serializerootsignature_public.md)
