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

> Descreve os parâmetros necessários para alocar recursos.

Descreve os parâmetros necessários para alocar recursos.

## Sintaxe

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

### Membros

*SizeInBytes*\
Tipo: UINT64

O tamanho do recurso, em bytes.

*Alignment*\
Tipo: UINT64

O valor de alinhamento do recurso; um dos alinhamentos de 4 KB (4096), 64 KB (65536) ou 4 MB (4194304).

## Comentários

Esta estrutura é usada pelos métodos [ID3D12Device::GetResourceAllocationInfo](/pt-BR/reference/graphics/d3d12/interfaces/id3d12device/methods/id3d12device_getresourceallocationinfo_public) e [ID3D12Device::GetResourceAllocationInfo1](/pt-BR/reference/graphics/d3d12/interfaces/id3d12device4/methods/id3d12device4_getresourceallocationinfo1_public).

## Requisitos

**Cabeçalho:** d3d12\_xs.h ou d3d12\_x.h\
**Biblioteca:** d3d12\_xs.lib ou d3d12\_x.lib\
**Plataformas com suporte**: consoles XBOX Series e família XBOX One

## Confira também

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

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


## Related topics

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