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

# SetDisplaySurface (XBOX Series 主機)

> 變更顯示模式。

變更顯示模式。

## 語法

```cpp theme={null}
HRESULT SetDisplaySurface(  
         IDXGISurface *pScanoutSurface  
)  
```

### 參數

\**pScanoutSurface*   \_In\_\
類型：IDXGISurface

### 傳回值

類型：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)
- [使用 GDKX 建置並執行你的第一個主機遊戲](/zh-TW/home/build-first-title/first-console-title-walkthrough.md)
- [Supporting high DPI displays on PC](/build/gdk-and-engines/guides/high-dpi-displays.md)
- [XBOX Series X|S 總覽](/zh-TW/paths/series-xs/overview.md)
- [XBOX Series X|S overview](/paths/series-xs/overview.md)
