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

Pointeur vers les informations de 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/reference/graphics/d3d12_xs/interfaces/IDXGIOutput/idxgioutput)


## Related topics

- [GetShaderIdentifier (consoles XBOX Series)](/fr/reference/graphics/d3d12/interfaces/id3d12stateobjectproperties/methods/id3d12stateobjectproperties_getshaderidentifier_public.md)
- [GetPipelineStackSize (consoles XBOX Series)](/fr/reference/graphics/d3d12/interfaces/id3d12stateobjectproperties/methods/id3d12stateobjectproperties_getpipelinestacksize_public.md)
- [GetShaderStackSize (consoles XBOX Series)](/fr/reference/graphics/d3d12/interfaces/id3d12stateobjectproperties/methods/id3d12stateobjectproperties_getshaderstacksize_public.md)
- [GetResourceAllocationInfo1 (consoles XBOX Series)](/fr/reference/graphics/d3d12/interfaces/id3d12device4/methods/id3d12device4_getresourceallocationinfo1_public.md)
- [D3D12GetInterface (consoles XBOX Series)](/fr/reference/graphics/d3d12/functions/d3d12getinterface_public.md)
