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

> Describes a resource, such as a texture, including a mip region. This structure is used in several methods.

Describes a resource, such as a texture, including a mip region. This structure is used in several methods.

## Syntax

```cpp theme={null}
typedef struct D3D12_RESOURCE_DESC1
{
    D3D12_RESOURCE_DIMENSION Dimension;
    UINT64 Alignment;
    UINT64 Width;
    UINT Height;
    UINT16 DepthOrArraySize;
    UINT16 MipLevels;
    DXGI_FORMAT Format;
    DXGI_SAMPLE_DESC SampleDesc;
    D3D12_TEXTURE_LAYOUT Layout;
    D3D12_RESOURCE_FLAGS Flags;
    D3D12_MIP_REGION SamplerFeedbackMipRegion;
} D3D12_RESOURCE_DESC1
```

### Members

*Dimension*\
Type: D3D12\_RESOURCE\_DIMENSION

One member of [D3D12\_RESOURCE\_DIMENSION](/reference/graphics/d3d12_x/enums/d3d12_resource_dimension), specifying the dimensions of the resource (for example, D3D12\_RESOURCE\_DIMENSION\_TEXTURE1D), or whether it is a buffer ((D3D12\_RESOURCE\_DIMENSION\_BUFFER).

*Alignment*\
Type: UINT64

Specifies the alignment.

*Width*\
Type: UINT64

Specifies the width of the resource.

*Height*\
Type: UINT

Specifies the height of the resource.

*DepthOrArraySize*\
Type: UINT16

Specifies the depth of the resource, if it is 3D, or the array size if it is an array of 1D or 2D resources.

*MipLevels*\
Type: UINT16

Specifies the number of MIP levels.

*Format*\
Type: DXGI\_FORMAT

Specifies one member of [DXGI\_FORMAT](https://learn.microsoft.com/en-us/windows/win32/api/dxgiformat/ne-dxgiformat-dxgi_format).

*SampleDesc*\
Type: DXGI\_SAMPLE\_DESC

Specifies a [DXGI\_SAMPLE\_DESC](https://learn.microsoft.com/en-us/windows/win32/api/dxgicommon/ns-dxgicommon-dxgi_sample_desc) structure.

*Layout*\
Type: D3D12\_TEXTURE\_LAYOUT

Specifies one member of [D3D12\_TEXTURE\_LAYOUT](/reference/graphics/d3d12_x/enums/d3d12_texture_layout).

*Flags*\
Type: D3D12\_RESOURCE\_FLAGS

Bitwise-OR'd flags, as [D3D12\_RESOURCE\_FLAGS](/reference/graphics/d3d12_x/enums/d3d12_resource_flags) enumeration constants.

*SamplerFeedbackMipRegion*\
Type: D3D12\_MIP\_REGION

A [D3D12\_MIP\_REGION](/reference/graphics/d3d12_xs/structs/d3d12_mip_region) struct.

## Remarks

For remarks, see [D3D12\_RESOURCE\_DESC1](/reference/graphics/d3d12/structs/d3d12_resource_desc_public).

## Requirements

**Header:** d3d12\_x.h\
**Library:** d3d12\_x.lib\
**Supported Platforms**: XBOX One family

## See Also

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

* [Sampler feedback specification](https://microsoft.github.io/DirectX-Specs/d3d/SamplerFeedback.html)


## Related topics

- [CreateCommittedResource3 (XBOX Series consoles)](/reference/graphics/d3d12/interfaces/id3d12device10/methods/id3d12device10_createcommittedresource3_public.md)
- [CreatePlacedResource2 (XBOX Series consoles)](/reference/graphics/d3d12/interfaces/id3d12device10/methods/id3d12device10_createplacedresource2_public.md)
- [D3D12_PROTECTED_RESOURCE_SESSION_DESC1](/reference/graphics/d3d12/structs/d3d12_protected_resource_session_desc1_public.md)
- [D3D12_DEPTH_STENCIL_DESC1](/reference/graphics/d3d12/structs/d3d12_depth_stencil_desc1_public.md)
- [D3D12_ROOT_SIGNATURE_DESC1](/reference/graphics/d3d12/structs/d3d12_root_signature_desc1_public.md)
