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

# GetAspectRatio (consoles XBOX Series)

> Obtient le rapport d'aspect de l'affichage.

Obtient le rapport d'aspect de l'affichage.

## Syntaxe

```cpp theme={null}
HRESULT GetAspectRatio(  
         DXGI_RATIONAL* pAspectRatio  
)  
```

### Paramètres

*pAspectRatio*   \_Out\_\
Type : DXGI\_RATIONAL\*

Un pointeur vers les informations sur le rapport d'aspect.

### Valeur de retour

Type : HRESULT

Retourne S\_OK en cas de réussite ou E\_INVALIDARG en cas d'appel avec des paramètres non valides.

## Remarques

Cette méthode retourne toujours la valeur 16:9 sur XBOX Series X|S.

## Configuration requise

**En-tête :** d3d12\_xs.h

**Bibliothèque :** d3d12\_xs.lib\
**Plateformes prises en charge :** consoles XBOX Series

## Voir aussi

[IDXGIOutput](/fr-CA/reference/graphics/d3d12_xs/interfaces/IDXGIOutput/idxgioutput)


## Related topics

- [Best Practices for Game Streaming Custom Resolution](/build/core-features/common/game-streaming/game-streaming-custom-resolution-best-practices.md)
- [GetShapeEqCompRatio](/reference/audio/shapeeqcompcontext/functions/getshapeeqcompratio.md)
- [XGameStreamingGetDisplayDetails](/reference/system/xgamestreaming/functions/xgamestreaminggetdisplaydetails.md)
- [Custom Resolution Overview](/build/core-features/common/game-streaming/game-streaming-custom-resolution-overview.md)
- [Testing With Custom Resolution](/build/core-features/common/game-streaming/game-streaming-testing-custom-resolution.md)
