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

> D3D12_PROTECTED_RESOURCE_SESSION_DESC (Direct3D 12 on XBOX) — 按适配器描述受保护资源会话的标志。

按适配器描述受保护资源会话的标志。

## 语法

```cpp theme={null}
typedef struct D3D12_PROTECTED_RESOURCE_SESSION_DESC
{
    UINT NodeMask;
    D3D12_PROTECTED_RESOURCE_SESSION_FLAGS Flags;
} D3D12_PROTECTED_RESOURCE_SESSION_DESC
```

### 成员

*NodeMask*\
类型：UINT

节点掩码。对于单 GPU 操作，将其设置为零。如果有多个 GPU 节点，则设置一个位以标识受保护会话所应用于的节点（设备的物理适配器）。掩码中的每一位对应一个节点。只能设置 1 位。

*Flags*\
类型：D3D12\_PROTECTED\_RESOURCE\_SESSION\_FLAGS

指定支持的加密会话选项。

## 备注

## 要求

**头文件：** d3d12\_xs.h 或 d3d12\_x.h\
**库：** d3d12\_xs.lib 或 d3d12\_x.lib\
**支持的平台**：XBOX Series 主机和 XBOX One 系列

## 另请参阅


## Related topics

- [ID3D12ProtectedResourceSession::GetDesc](/zh-CN/reference/graphics/d3d12/interfaces/id3d12protectedresourcesession/methods/id3d12protectedresourcesession_getdesc_public.md)
- [CreateProtectedResourceSession (XBOX Series 主机)](/zh-CN/reference/graphics/d3d12/interfaces/id3d12device4/methods/id3d12device4_createprotectedresourcesession_public.md)
- [D3D12_PROTECTED_RESOURCE_SESSION_DESC1](/zh-CN/reference/graphics/d3d12/structs/d3d12_protected_resource_session_desc1_public.md)
- [ID3D12ProtectedResourceSession](/zh-CN/reference/graphics/d3d12/interfaces/id3d12protectedresourcesession/id3d12protectedresourcesession_public.md)
- [D3D12_PROTECTED_RESOURCE_SESSION_FLAGS](/zh-CN/reference/graphics/d3d12/enums/d3d12_protected_resource_session_flags_public.md)
