> ## Documentation Index
> Fetch the complete documentation index at: https://docs.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*\
类型：WCHAR\[128]

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

*VendorId*\
类型：UINT

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

*DeviceId*\
类型：UINT

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

*SubSysId*\
类型：UINT

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

*Revision*\
类型：UINT

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

*DedicatedVideoMemory*\
类型：SIZE\_T

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

*DedicatedSystemMemory*\
类型：SIZE\_T

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

*SharedSystemMemory*\
类型：SIZE\_T

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

*AdapterLuid*\
类型：LUID

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

*Flags*\
类型：UINT

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

*GraphicsPreemptionGranularity*\
类型：DXGI\_GRAPHICS\_PREEMPTION\_GRANULARITY

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

*ComputePreemptionGranularity*\
类型：DXGI\_COMPUTE\_PREEMPTION\_GRANULARITY

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

## 备注

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

## 要求

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

## 另请参阅

[d3d12\_xs](https://docs.xbox.com/zh-CN/reference/graphics/d3d12_xs/d3d12_xs_members.md)


## Related topics

- [GetAdapterLuid](https://docs.xbox.com/zh-CN/reference/graphics/d3d12/interfaces/id3d12device/methods/id3d12device_getadapterluid_public.md)
- [NDA 主题目录 - Microsoft Learn 在线链接](https://docs.xbox.com/zh-CN/nda/nda-topic-directory.md)
- [CreateMetaCommand (XBOX Series 主机)](https://docs.xbox.com/zh-CN/reference/graphics/d3d12/interfaces/id3d12device5/methods/id3d12device5_createmetacommand_public.md)
- [CreateShaderCacheSession (XBOX Series 主机)](https://docs.xbox.com/zh-CN/reference/graphics/d3d12/interfaces/id3d12device9/methods/id3d12device9_createshadercachesession_public.md)
- [D3D12_SHADER_CACHE_CONTROL_FLAGS（XBOX Series 主机）](https://docs.xbox.com/zh-CN/reference/graphics/d3d12/enums/d3d12_shader_cache_control_flags_public.md)
