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

# XFrontPanelPresentBuffer

> XFrontPanelPresentBuffer

# XFrontPanelPresentBuffer

指定したバッファーをフロント パネル ディスプレイにレンダリングします。

<a id="syntaxSection" />

## 構文

```cpp theme={null}
HRESULT XFrontPanelPresentBuffer(  
         uint32_t bufferSize,  
         const uint8_t* buffer  
)  
```

<a id="parametersSection" />

### パラメーター

*bufferSize*   \_In\_\
Type: uint32\_t

バッファーのサイズ (バイト単位)。

*buffer*   \_In\_reads\_(bufferSize)\
Type: uint8\_t\*

画面にレンダリングするピクセルの配列へのポインター。

<a id="retvalSection" />

### 戻り値

Type: HRESULT

成功した場合は `S_OK` を返します。それ以外の場合はエラー コードを返します。

<a id="remarksSection" />

## 解説

通常、この関数はフロント パネル ディスプレイの更新が必要な場合にのみ呼び出してください。フレームごとに呼び出す必要があるのは、アニメーションを行う場合のみです。

*buffer* に使用するピクセル形式を取得するには、[XFrontPanelGetScreenPixelFormat](/reference/devkit/xfrontpaneldisplay/functions/xfrontpanelgetscreenpixelformat) を使用してください。

フロント パネル ディスプレイのサイズを取得するには、[XFrontPanelGetScreenDimensions](/reference/devkit/xfrontpaneldisplay/functions/xfrontpanelgetscreendimensions) を使用してください。

詳細については、[XBOX One X: フロント パネル ディスプレイの使用 (NDA トピック)](https://learn.microsoft.com/gaming/gdk/docs/gdk-dev/console-dev/dev-kits/concepts/scorpio-frontpanel) を参照してください。

<a id="requirementsSection" />

## 要件

**ヘッダー:** xfrontpaneldisplay.h

**ライブラリ:** xfrontpaneldisplay.lib

**サポートされているプラットフォーム:** XBOX One ファミリ本体および XBOX Series 本体

<a id="seealsoSection" />

## 関連項目

[XFrontPanelDisplay](/reference/devkit/xfrontpaneldisplay/xfrontpaneldisplay_members)


## Related topics

- [XFrontPanelIsSupported](/ja-jp/reference/devkit/xfrontpaneldisplay/functions/xfrontpanelissupported.md)
- [XFrontPanelGetScreenPixelFormat](/ja-jp/reference/devkit/xfrontpaneldisplay/functions/xfrontpanelgetscreenpixelformat.md)
- [XFrontPanelDisplay](/ja-jp/reference/devkit/xfrontpaneldisplay/xfrontpaneldisplay_members.md)
- [XFrontPanelButton](/ja-jp/reference/devkit/xfrontpaneldisplay/enums/xfrontpanelbutton.md)
- [XFrontPanelLight](/ja-jp/reference/devkit/xfrontpaneldisplay/enums/xfrontpanellight.md)
