> ## 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](/zh-TW/reference/graphics/d3d12_xs/interfaces/IDXGIAdapter2/methods/idxgiadapter2_getdesc2) 方法初始化。

## 需求

**標頭：** d3d12\_xs.h<br />**支援的平台**：XBOX Series 主機

## 另請參閱

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


## Related topics

- [DXGI_ADAPTER_DESC2 (XBOX Series consoles)](/reference/graphics/d3d12_xs/structs/dxgi_adapter_desc2.md)
- [DXGI_ADAPTER_DESC2 (consolas XBOX Series)](/es/reference/graphics/d3d12_xs/structs/dxgi_adapter_desc2.md)
- [DXGI_ADAPTER_DESC2 (XBOX Series 主机)](/zh-CN/reference/graphics/d3d12_xs/structs/dxgi_adapter_desc2.md)
- [DXGI_ADAPTER_DESC2 (XBOX Series 콘솔)](/ko/reference/graphics/d3d12_xs/structs/dxgi_adapter_desc2.md)
- [DXGI_ADAPTER_DESC2 (XBOX Series 本体)](/ja-jp/reference/graphics/d3d12_xs/structs/dxgi_adapter_desc2.md)
