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

# FindClosestMatchingMode (XBOX Series 主機)

> 尋找與所要求顯示模式最相符的顯示模式。

尋找與所要求顯示模式最相符的顯示模式。

## 語法

```cpp theme={null}
HRESULT FindClosestMatchingMode(  
         const DXGI_MODE_DESC *pModeToMatch,  
         DXGI_MODE_DESC *pClosestMatch,  
         IUnknown* pConcernedDevice  
)  
```

### 參數

\**pModeToMatch*   \_In\_\
類型：[DXGI\_MODE\_DESC](/zh-TW/reference/graphics/d3d12_xs/structs/dxgi_mode_desc)

\**pClosestMatch*   \_Out\_\
類型：[DXGI\_MODE\_DESC](/zh-TW/reference/graphics/d3d12_xs/structs/dxgi_mode_desc)

*pConcernedDevice*   \_In\_opt\_\
類型：IUnknown\*

### 傳回值

類型：HRESULT

傳回 DXGI\_ERROR\_UNSUPPORTED。

## 備註

XBOX Series X|S 不支援此方法。

## 需求

**標頭：** d3d12\_xs.h

**程式庫：** d3d12\_xs.lib\
**支援的平台：** XBOX Series 主機

## 另請參閱

[IDXGIOutput](/zh-TW/reference/graphics/d3d12_xs/interfaces/IDXGIOutput/idxgioutput)


## Related topics

- [NDA 主題目錄 - Microsoft Learn 線上連結](/zh-TW/nda/nda-topic-directory.md)
- [Find lobbies](/services/playfab/multiplayer/lobby/find-lobbies.md)
- [XPackageGetUserLocale](/reference/system/xpackage/functions/xpackagegetuserlocale.md)
- [ILampInfo::GetNearestSupportedColor method](/reference/lighting/lamparray/interfaces/ilampinfo/methods/ilampinfo_getnearestsupportedcolor.md)
- [CheckDriverMatchingIdentifier (XBOX Series consoles)](/reference/graphics/d3d12/interfaces/id3d12device5/methods/id3d12device5_checkdrivermatchingidentifier_public.md)
