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

# D3D12_VIEWPORT

> Décrit les dimensions d'une fenêtre d'affichage.

Décrit les dimensions d'une fenêtre d'affichage.

## Syntaxe

```cpp theme={null}
typedef struct D3D12_VIEWPORT
{
    FLOAT TopLeftX;
    FLOAT TopLeftY;
    FLOAT Width;
    FLOAT Height;
    FLOAT MinDepth;
    FLOAT MaxDepth;
} D3D12_VIEWPORT
```

### Membres

*TopLeftX*\
Type : FLOAT

Position X du côté gauche de la fenêtre d'affichage.

*TopLeftY*\
Type : FLOAT

Position Y du haut de la fenêtre d'affichage.

*Width*\
Type : FLOAT

Largeur de la fenêtre d'affichage.

*Height*\
Type : FLOAT

Hauteur de la fenêtre d'affichage.

*MinDepth*\
Type : FLOAT

Profondeur minimale de la fenêtre d'affichage. Valeur comprise entre 0 et 1.

*MaxDepth*\
Type : FLOAT

Profondeur maximale de la fenêtre d'affichage. Valeur comprise entre 0 et 1.

## Remarques

Passez un tableau de ces structures au paramètre <i>pViewports</i> dans un appel à [ID3D12GraphicsCommandList::RSSetViewports](/fr-CA/reference/graphics/d3d12/interfaces/id3d12graphicscommandlist/methods/id3d12graphicscommandlist_rssetviewports_public) pour définir les fenêtres d'affichage de l'écran.

## Configuration requise

**En-tête :** d3d12\_xs.h ou d3d12\_x.h\
**Bibliothèque :** d3d12\_xs.lib ou d3d12\_x.lib\
**Plateformes prises en charge :** consoles XBOX Series et famille XBOX One

## Voir aussi

[Structures de base](https://learn.microsoft.com/en-us/windows/desktop/direct3d12/direct3d-12-structures)


## Related topics

- [D3D12_FEATURE_DATA_D3D12_OPTIONS13](/fr-CA/reference/graphics/d3d12/structs/d3d12_feature_data_d3d12_options13_public.md)
- [D3D12_FEATURE_DATA_D3D12_OPTIONS6](/fr-CA/reference/graphics/d3d12/structs/d3d12_feature_data_d3d12_options6_public.md)
- [D3D12_VIEW_INSTANCE_LOCATION](/fr-CA/reference/graphics/d3d12/structs/d3d12_view_instance_location_public.md)
- [D3D12_VIEW_INSTANCING_DESC](/fr-CA/reference/graphics/d3d12/structs/d3d12_view_instancing_desc_public.md)
- [D3D12_GRAPHICS_STATES](/fr-CA/reference/graphics/d3d12/enums/d3d12_graphics_states_public.md)
