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

> Descreve o formato, a largura, a altura, a profundidade e o pitch de linha do sub-recurso no recurso pai.

Descreve o formato, a largura, a altura, a profundidade e o pitch de linha do sub-recurso no recurso pai.

## Sintaxe

```cpp theme={null}
typedef struct D3D12_SUBRESOURCE_FOOTPRINT
{
    DXGI_FORMAT Format;
    UINT Width;
    UINT Height;
    UINT Depth;
    UINT RowPitch;
} D3D12_SUBRESOURCE_FOOTPRINT
```

### Membros

*Format*\
Tipo: DXGI\_FORMAT

Um valor do tipo [DXGI\_FORMAT](https://learn.microsoft.com/en-us/windows/desktop/api/dxgiformat/ne-dxgiformat-dxgi_format) que  especifica o formato de exibição.

*Width*\
Tipo: UINT

A largura do sub-recurso.

*Height*\
Tipo: UINT

A altura do sub-recurso.

*Depth*\
Tipo: UINT

A profundidade do sub-recurso.

*RowPitch*\
Tipo: UINT

O pitch de linha, ou largura, ou tamanho físico, em bytes, dos dados do sub-recurso.
Deve ser um múltiplo de D3D12\_TEXTURE\_DATA\_PITCH\_ALIGNMENT (256) e deve ser maior ou igual ao tamanho dos dados em uma linha.

## Comentários

Use essa estrutura na estrutura [D3D12\_PLACED\_SUBRESOURCE\_FOOTPRINT](/pt-BR/reference/graphics/d3d12/structs/d3d12_placed_subresource_footprint_public).

A estrutura auxiliar é [CD3DX12\_SUBRESOURCE\_FOOTPRINT](https://learn.microsoft.com/en-us/windows/desktop/direct3d12/cd3dx12-subresource-footprint).

## 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\_SUBRESOURCE\_FOOTPRINT](https://learn.microsoft.com/en-us/windows/desktop/direct3d12/cd3dx12-subresource-footprint)

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


## Related topics

- [D3D12_PLACED_SUBRESOURCE_FOOTPRINT](/pt-BR/reference/graphics/d3d12/structs/d3d12_placed_subresource_footprint_public.md)
- [GetCopyableFootprints](/pt-BR/reference/graphics/d3d12/interfaces/id3d12device/methods/id3d12device_getcopyablefootprints_public.md)
- [D3D12_TEXTURE_COPY_TYPE](/pt-BR/reference/graphics/d3d12/enums/d3d12_texture_copy_type_public.md)
- [D3D12_TEXTURE_COPY_LOCATION](/pt-BR/reference/graphics/d3d12/structs/d3d12_texture_copy_location_public.md)
- [D3D12_SUBRESOURCE_INFO](/pt-BR/reference/graphics/d3d12/structs/d3d12_subresource_info_public.md)
