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

> 指定解析操作。

指定解析操作。

## 语法

```cpp theme={null}
typedef enum D3D12_RESOLVE_MODE
{
    D3D12_RESOLVE_MODE_DECOMPRESS = 0,
    D3D12_RESOLVE_MODE_MIN = 1,
    D3D12_RESOLVE_MODE_MAX = 2,
    D3D12_RESOLVE_MODE_AVERAGE = 3
} D3D12_RESOLVE_MODE
```

## 常量

| 常量                               | 描述                                                                                  |
| -------------------------------- | ----------------------------------------------------------------------------------- |
| D3D12\_RESOLVE\_MODE\_DECOMPRESS | 将压缩的源采样解析为其未压缩的值。使用此操作时，源资源和目标资源必须具有相同的采样数量，这与要求目标采样数量为 1 的 min、max 和 average 操作不同。 |
| D3D12\_RESOLVE\_MODE\_MIN        | 将源采样解析为其最小值。可用于任何渲染目标或深度模板格式。                                                       |
| D3D12\_RESOLVE\_MODE\_MAX        | 将源采样解析为其最大值。可用于任何渲染目标或深度模板格式。                                                       |
| D3D12\_RESOLVE\_MODE\_AVERAGE    | 将源采样解析为其平均值。可用于任何非整数渲染目标格式，包括深度平面。不能用于整数渲染目标格式，包括模板平面。                              |

## 备注

此枚举由 [ID3D12GraphicsCommandList1::ResolveSubresourceRegion](/reference/graphics/d3d12/interfaces/id3d12graphicscommandlist1/methods/id3d12graphicscommandlist1_resolvesubresourceregion_public) 函数使用。

## 要求

**头文件：** 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-enumerations)


## Related topics

- [D3D12_RENDER_PASS_ENDING_ACCESS_RESOLVE_PARAMETERS](/zh-CN/reference/graphics/d3d12/structs/d3d12_render_pass_ending_access_resolve_parameters_public.md)
- [ResolveSubresourceRegion](/zh-CN/reference/graphics/d3d12/interfaces/id3d12graphicscommandlist1/methods/id3d12graphicscommandlist1_resolvesubresourceregion_public.md)
- [D3D12_RENDER_PASS_ENDING_ACCESS](/zh-CN/reference/graphics/d3d12/structs/d3d12_render_pass_ending_access_public.md)
- [D3D12_RENDER_PASS_ENDING_ACCESS_RESOLVE_SUBRESOURCE_PARAMETERS](/zh-CN/reference/graphics/d3d12/structs/d3d12_render_pass_ending_access_resolve_subresource_parameters_public.md)
- [D3D12_CULL_MODE](/zh-CN/reference/graphics/d3d12/enums/d3d12_cull_mode_public.md)
