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

# DXGI_ADAPTER_DESC2 (XBOX Series 主机)

> 使用 DXGI 1.2 描述适配器（或显卡）。

描述适配器（或显卡）。

## 语法

```cpp theme={null}
typedef struct DXGI_ADAPTER_DESC2 {  
    WCHAR Description[128];  
    UINT VendorId;  
    UINT DeviceId;  
    UINT SubSysId;  
    UINT Revision;  
    SIZE_T DedicatedVideoMemory;  
    SIZE_T DedicatedSystemMemory;  
    SIZE_T SharedSystemMemory;  
    LUID AdapterLuid;  
    UINT Flags;  
    DXGI_GRAPHICS_PREEMPTION_GRANULARITY GraphicsPreemptionGranularity;  
    DXGI_COMPUTE_PREEMPTION_GRANULARITY ComputePreemptionGranularity;  
} DXGI_ADAPTER_DESC2  
```

### 成员

*Description*<br />类型：WCHAR\[128]

包含适配器描述的字符串。在功能级别 9 图形硬件上，GetDesc2 返回描述字符串 "Software Adapter"。

*VendorId*<br />类型：UINT

硬件供应商的 PCI ID。在功能级别 9 图形硬件上，GetDesc2 返回零作为硬件供应商的 PCI ID。

*DeviceId*<br />类型：UINT

硬件设备的 PCI ID。在功能级别 9 图形硬件上，GetDesc2 返回零作为硬件设备的 PCI ID。

*SubSysId*<br />类型：UINT

子系统的 PCI ID。在功能级别 9 图形硬件上，GetDesc2 返回零作为子系统的 PCI ID。

*Revision*<br />类型：UINT

适配器修订号的 PCI ID。在功能级别 9 图形硬件上，GetDesc1 返回零作为适配器修订号的 PCI ID。

*DedicatedVideoMemory*<br />类型：SIZE\_T

不与 CPU 共享的专用视频内存的字节数。

*DedicatedSystemMemory*<br />类型：SIZE\_T

不与 CPU 共享的专用系统内存的字节数。此内存在启动时从可用系统内存中分配。

*SharedSystemMemory*<br />类型：SIZE\_T

共享系统内存的字节数。这是适配器在运行期间可能消耗的系统内存的最大值。驱动程序在管理和使用视频内存时消耗的任何附加内存均为额外内存。

*AdapterLuid*<br />类型：LUID

标识适配器的唯一值。有关此结构的定义，请参阅 [LUID](https://learn.microsoft.com/en-us/previous-versions/windows/hardware/drivers/ff549708\(v=vs.85\))。LUID 定义在 dxgi.h 中。

*Flags*<br />类型：UINT

描述适配器类型的 DXGI\_ADAPTER\_FLAG 枚举类型的值。DXGI\_ADAPTER\_FLAG\_REMOTE 标志为保留。

*GraphicsPreemptionGranularity*<br />类型：DXGI\_GRAPHICS\_PREEMPTION\_GRANULARITY

`DXGI_GRAPHICS_PREEMPTION_GRANULARITY` 枚举类型的值，描述 GPU 在执行当前图形渲染任务时可被抢占的粒度级别。

*ComputePreemptionGranularity*<br />类型：DXGI\_COMPUTE\_PREEMPTION\_GRANULARITY

`DXGI_COMPUTE_PREEMPTION_GRANULARITY` 枚举类型的值，描述 GPU 在执行当前计算任务时可被抢占的粒度级别。

## 备注

DXGI\_ADAPTER\_DESC2 结构提供适配器的 DXGI 1.2 描述。此结构使用 [IDXGIAdapter2::GetDesc2](/reference/graphics/d3d12_xs/interfaces/IDXGIAdapter2/methods/idxgiadapter2_getdesc2) 方法进行初始化。

## 要求

**头文件：** d3d12\_xs.h<br />**支持的平台**：XBOX Series 主机

## 另请参阅

[d3d12\_xs](/reference/graphics/d3d12_xs/d3d12_xs_members)


## Related topics

- [GetAdapterLuid](/zh-CN/reference/graphics/d3d12/interfaces/id3d12device/methods/id3d12device_getadapterluid_public.md)
- [NDA 主题目录 - Microsoft Learn 在线链接](/zh-CN/nda/nda-topic-directory.md)
- [CreateMetaCommand (XBOX Series 主机)](/zh-CN/reference/graphics/d3d12/interfaces/id3d12device5/methods/id3d12device5_createmetacommand_public.md)
- [CreateShaderCacheSession (XBOX Series 主机)](/zh-CN/reference/graphics/d3d12/interfaces/id3d12device9/methods/id3d12device9_createshadercachesession_public.md)
- [XR-131 Game DVR 与截屏的显示模式支持](/zh-CN/publishing/certification/xr/xr-131.md)
