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

> 描述資源 (例如紋理)，包括 MIP 區域。此結構用於數個方法中。

描述資源 (例如紋理)，包括 MIP 區域。此結構用於數個方法中。

## 語法

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

### 成員

*Dimension*\
類型：D3D12\_RESOURCE\_DIMENSION

[D3D12\_RESOURCE\_DIMENSION](/zh-TW/reference/graphics/d3d12_x/enums/d3d12_resource_dimension) 的其中一個成員，指定資源的維度 (例如 D3D12\_RESOURCE\_DIMENSION\_TEXTURE1D)，或指定其是否為緩衝區 ((D3D12\_RESOURCE\_DIMENSION\_BUFFER)。

*Alignment*\
類型：UINT64

指定對齊方式。

*Width*\
類型：UINT64

指定資源的寬度。

*Height*\
類型：UINT

指定資源的高度。

*DepthOrArraySize*\
類型：UINT16

如果資源為 3D，則指定資源的深度；如果是 1D 或 2D 資源的陣列，則指定陣列大小。

*MipLevels*\
類型：UINT16

指定 MIP 層級的數目。

*Format*\
類型：DXGI\_FORMAT

指定 [DXGI\_FORMAT](https://learn.microsoft.com/en-us/windows/win32/api/dxgiformat/ne-dxgiformat-dxgi_format) 的其中一個成員。

*SampleDesc*\
類型：DXGI\_SAMPLE\_DESC

指定 [DXGI\_SAMPLE\_DESC](https://learn.microsoft.com/en-us/windows/win32/api/dxgicommon/ns-dxgicommon-dxgi_sample_desc) 結構。

*Layout*\
類型：D3D12\_TEXTURE\_LAYOUT

指定 [D3D12\_TEXTURE\_LAYOUT](/zh-TW/reference/graphics/d3d12_x/enums/d3d12_texture_layout) 的其中一個成員。

*Flags*\
類型：D3D12\_RESOURCE\_FLAGS

以位元 OR 運算組合的旗標，為 [D3D12\_RESOURCE\_FLAGS](/zh-TW/reference/graphics/d3d12_x/enums/d3d12_resource_flags) 列舉常數。

*SamplerFeedbackMipRegion*\
類型：D3D12\_MIP\_REGION

[D3D12\_MIP\_REGION](/zh-TW/reference/graphics/d3d12_xs/structs/d3d12_mip_region) 結構。

## 備註

如需備註，請參閱 [D3D12\_RESOURCE\_DESC1](/zh-TW/reference/graphics/d3d12/structs/d3d12_resource_desc_public)。

## 需求

**標頭:** d3d12\_x.h\
**程式庫:** d3d12\_x.lib\
**支援的平台**: XBOX One 系列

## 另請參閱

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

* [取樣器回饋規格](https://microsoft.github.io/DirectX-Specs/d3d/SamplerFeedback.html)


## Related topics

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