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

> 表示是否支援增強型屏障。

表示是否支援增強型屏障。

## 語法

```cpp theme={null}
typedef struct D3D12_FEATURE_DATA_D3D12_OPTIONS12
{
    D3D12_TRI_STATE MSPrimitivesPipelineStatisticIncludesCulledPrimitives;
    BOOL EnhancedBarriersSupported;
    BOOL RelaxedFormatCastingSupported;
} D3D12_FEATURE_DATA_D3D12_OPTIONS12
```

### 成員

*MSPrimitivesPipelineStatisticIncludesCulledPrimitives*\
類型：D3D12\_TRI\_STATE

表示是否支援此功能的狀態。

*EnhancedBarriersSupported*\
類型：BOOL

表示是否支援增強型屏障。如果支援則為 `true`，否則為 `false`。

增強型屏障目前不是硬體或驅動程式需求。因此，在使用命令清單 Barrier API 或使用 *InitialLayout* 參數的資源建立 API 之前，您必須透過 *EnhancedBarriersSupported* 檢查是否有選用的驅動程式支援。

需要 DirectX 12 Agility SDK 1.7 或更新版本；否則，值一律為 `FALSE`。

*RelaxedFormatCastingSupported*\
類型：BOOL

技術上用來表示是否支援啟用整數別名的功能。

需要 DirectX 12 Agility SDK 1.7 或更新版本；否則，值一律為 `FALSE`。

## 備註

## 需求

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

## 另請參閱


## Related topics

- [D3D12_FEATURE](/zh-TW/reference/graphics/d3d12/enums/d3d12_feature_public.md)
- [D3D12_FEATURE_DATA_D3D12_OPTIONS](/zh-TW/reference/graphics/d3d12/structs/d3d12_feature_data_d3d12_options_public.md)
- [D3D12_FEATURE_DATA_D3D12_OPTIONS5](/zh-TW/reference/graphics/d3d12/structs/d3d12_feature_data_d3d12_options5_public.md)
- [D3D12_FEATURE_DATA_D3D12_OPTIONS1](/zh-TW/reference/graphics/d3d12/structs/d3d12_feature_data_d3d12_options1_public.md)
- [D3D12_FEATURE_DATA_D3D12_OPTIONS13](/zh-TW/reference/graphics/d3d12/structs/d3d12_feature_data_d3d12_options13_public.md)
