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

# GetMaximumFrameLatency (XBOX Series 主機)

> 取得系統允許排入佇列以進行轉譯的畫面數目。

取得系統允許排入佇列以進行轉譯的畫面數目。

## 語法

```cpp theme={null}
HRESULT GetMaximumFrameLatency(  
         UINT* pMaxLatency  
)  
```

### 參數

*pMaxLatency*   \_Out\_\
類型：UINT\*

此值會設為可排入佇列以進行轉譯的畫面數目。
此值預設為 3，但範圍可介於 1 到 16。

### 傳回值

類型：HRESULT

如果成功，會傳回 S\_OK；否則會傳回錯誤碼。如需錯誤碼清單，請參閱 [Direct3D 12 傳回碼](https://learn.microsoft.com/en-us/windows/win32/direct3d12/d3d12-graphics-reference-returnvalues)。

## 需求

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

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

## 另請參閱

[IDXGIDevice1](/zh-TW/reference/graphics/d3d12_xs/interfaces/IDXGIDevice1/idxgidevice1)


## Related topics

- [NDA 主題目錄 - Microsoft Learn 線上連結](/zh-TW/nda/nda-topic-directory.md)
- [XBOX Series X|S 總覽](/zh-TW/paths/series-xs/overview.md)
- [Play Anywhere(主機 + PC)總覽](/zh-TW/paths/play-anywhere/overview.md)
- [Game streaming latency compensation deep dive](/build/core-features/common/game-streaming/game-streaming-latency-compensation-deep-dive.md)
- [Game streaming latency measurement](/build/core-features/common/game-streaming/game-streaming-latency-measurement.md)
