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

Renders the specified buffer to the front panel display.

<a id="syntaxSection" />

## Syntax

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

<a id="parametersSection" />

### Parameters

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

Size of the buffer, in bytes.

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

Pointer to an array of pixels to render to the screen.

<a id="retvalSection" />

### Return value

Type: HRESULT

Returns `S_OK` if successful; otherwise, returns an error code.

<a id="remarksSection" />

## Remarks

Generally, call this function only when the front panel display needs to be updated. Calling it for every frame is needed only for animation.

To get the pixel format to use in *buffer*, use [XFrontPanelGetScreenPixelFormat](/reference/devkit/xfrontpaneldisplay/functions/xfrontpanelgetscreenpixelformat).

To get the dimensions of the front panel display, use [XFrontPanelGetScreenDimensions](/reference/devkit/xfrontpaneldisplay/functions/xfrontpanelgetscreendimensions).

For more information, see [XBOX One X: Using the front panel display (NDA topic)](https://learn.microsoft.com/gaming/gdk/docs/gdk-dev/console-dev/dev-kits/concepts/scorpio-frontpanel).

<a id="requirementsSection" />

## Requirements

**Header:** xfrontpaneldisplay.h

**Library:** xfrontpaneldisplay.lib

**Supported platforms:** XBOX One family consoles and XBOX Series consoles

<a id="seealsoSection" />

## See also

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