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

> 指示适配器为深度边界测试和可编程采样位置提供的支持级别。

指示适配器为深度边界测试和可编程采样位置提供的支持级别。

## 语法

```cpp theme={null}
typedef struct D3D12_FEATURE_DATA_D3D12_OPTIONS2
{
    BOOL DepthBoundsTestSupported;
    D3D12_PROGRAMMABLE_SAMPLE_POSITIONS_TIER ProgrammableSamplePositionsTier;
} D3D12_FEATURE_DATA_D3D12_OPTIONS2
```

### 成员

*DepthBoundsTestSupported*\
类型:BOOL

[SAL](https://learn.microsoft.com/en-us/visualstudio/code-quality/annotating-structs-and-classes):<code>*Out*</code>

返回时,如果支持深度边界测试,则包含 true;否则为 false。

*ProgrammableSamplePositionsTier*\
类型:D3D12\_PROGRAMMABLE\_SAMPLE\_POSITIONS\_TIER

[SAL](https://learn.microsoft.com/en-us/visualstudio/code-quality/annotating-structs-and-classes):<code>*Out*</code>

返回时,包含一个值,该值指示为可编程采样位置提供的支持级别。

## 备注

将此结构与 [CheckFeatureSupport](/reference/graphics/d3d12/interfaces/id3d12device/methods/id3d12device_checkfeaturesupport_public) 一起使用,以确定为可选的深度边界测试和可编程采样位置功能提供的支持级别。

请参阅 [D3D12\_FEATURE](/reference/graphics/d3d12/enums/d3d12_feature_public) 枚举中的枚举常量 D3D12\_FEATURE\_D3D12\_OPTIONS2。

## 要求

**头文件:** 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\_FEATURE](/reference/graphics/d3d12/enums/d3d12_feature_public)


## Related topics

- [D3D12_FEATURE](/zh-CN/reference/graphics/d3d12/enums/d3d12_feature_public.md)
- [D3D12_PROGRAMMABLE_SAMPLE_POSITIONS_TIER](/zh-CN/reference/graphics/d3d12/enums/d3d12_programmable_sample_positions_tier_public.md)
- [D3D12_FEATURE_DATA_D3D12_OPTIONS](/zh-CN/reference/graphics/d3d12/structs/d3d12_feature_data_d3d12_options_public.md)
- [D3D12_FEATURE_DATA_D3D12_OPTIONS5](/zh-CN/reference/graphics/d3d12/structs/d3d12_feature_data_d3d12_options5_public.md)
- [D3D12_FEATURE_DATA_D3D12_OPTIONS12](/zh-CN/reference/graphics/d3d12/structs/d3d12_feature_data_d3d12_options12_public.md)
