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

> Décrit les paramètres nécessaires à l'allocation de ressources.

Décrit les paramètres nécessaires à l'allocation de ressources.

## Syntaxe

```cpp theme={null}
typedef struct D3D12_RESOURCE_ALLOCATION_INFO
{
    UINT64 SizeInBytes;
    UINT64 Alignment;
} D3D12_RESOURCE_ALLOCATION_INFO
```

### Membres

*SizeInBytes*\
Type : UINT64

Taille, en octets, de la ressource.

*Alignment*\
Type : UINT64

Valeur d'alignement de la ressource : 4 Ko (4096), 64 Ko (65536) ou 4 Mo (4194304).

## Remarques

Cette structure est utilisée par les méthodes [ID3D12Device::GetResourceAllocationInfo](/fr/reference/graphics/d3d12/interfaces/id3d12device/methods/id3d12device_getresourceallocationinfo_public) et [ID3D12Device::GetResourceAllocationInfo1](/fr/reference/graphics/d3d12/interfaces/id3d12device4/methods/id3d12device4_getresourceallocationinfo1_public).

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

[CD3DX12\_RESOURCE\_ALLOCATION\_INFO](https://learn.microsoft.com/en-us/windows/win32/direct3d12/cd3dx12-resource-allocation-info)

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


## Related topics

- [GetResourceAllocationInfo](/fr/reference/graphics/d3d12/interfaces/id3d12device/methods/id3d12device_getresourceallocationinfo_public.md)
- [GetResourceAllocationInfo1 (consoles XBOX Series)](/fr/reference/graphics/d3d12/interfaces/id3d12device4/methods/id3d12device4_getresourceallocationinfo1_public.md)
- [D3D12_RESOURCE_ALLOCATION_INFO1](/fr/reference/graphics/d3d12/structs/d3d12_resource_allocation_info1_public.md)
- [D3D12_DRED_ALLOCATION_TYPE](/fr/reference/graphics/d3d12/enums/d3d12_dred_allocation_type_public.md)
- [D3D12_DRED_ALLOCATION_NODE](/fr/reference/graphics/d3d12/structs/d3d12_dred_allocation_node_public.md)
