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

# D3D12XBOX_HISTENCIL_CONTROL (XBOX One 系列)

> 指定要執行的第一個和第二個比較。

指定要執行的第一個和第二個比較。

## 語法

```cpp theme={null}
typedef struct D3D12XBOX_HISTENCIL_CONTROL {  
    D3D12XBOX_HISTENCIL_COMPARE_STATE State0;  
    D3D12XBOX_HISTENCIL_COMPARE_STATE State1;  
} D3D12XBOX_HISTENCIL_CONTROL  
```

### 成員

*State0*\
類型：[D3D12XBOX\_HISTENCIL\_COMPARE\_STATE](/zh-TW/reference/graphics/d3d12_x/structs/d3d12xbox_histencil_compare_state)

要執行的第一個比較，以 **D3D12XBOX\_HISTENCIL\_COMPARE\_STATE** 結構表示。

*State1*\
類型：[D3D12XBOX\_HISTENCIL\_COMPARE\_STATE](/zh-TW/reference/graphics/d3d12_x/structs/d3d12xbox_histencil_compare_state)

要執行的第二個比較，以 **D3D12XBOX\_HISTENCIL\_COMPARE\_STATE** 結構表示。

## 備註

下列方法會使用此結構：

* [ID3D12GraphicsCommandList::SetHiStencilControlX](/zh-TW/reference/graphics/d3d12_x/interfaces/id3d12graphicscommandlist/methods/id3d12graphicscommandlist_sethistencilcontrolx)
* [ID3D12GraphicsCommandList::SetHiStencilStateX](/zh-TW/reference/graphics/d3d12_x/interfaces/id3d12graphicscommandlist/methods/id3d12graphicscommandlist_sethistencilstatex)

## 需求

**標頭：** 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)
- [ID3D12Object](/zh-TW/reference/graphics/d3d12/interfaces/id3d12object/id3d12object_public.md)
- [D3D12_FEATURE_DATA_D3D12_OPTIONS](/zh-TW/reference/graphics/d3d12/structs/d3d12_feature_data_d3d12_options_public.md)
- [ID3D12Pageable](/zh-TW/reference/graphics/d3d12/interfaces/id3d12pageable/id3d12pageable_public.md)
- [ID3D12Heap](/zh-TW/reference/graphics/d3d12/interfaces/id3d12heap/id3d12heap_public.md)
