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

> テクスチャなどのリソースを、ミップ領域を含めて記述します。この構造体は複数のメソッドで使用されます。

テクスチャなどのリソースを、ミップ領域を含めて記述します。この構造体は複数のメソッドで使用されます。

## 構文

```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\_TEXTURE1D) を指定するか、バッファーであるか (D3D12\_RESOURCE\_DIMENSION\_BUFFER) を指定する、[D3D12\_RESOURCE\_DIMENSION](/reference/graphics/d3d12_x/enums/d3d12_resource_dimension) のメンバーの 1 つ。

*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) のメンバーの 1 つを指定します。

*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](/reference/graphics/d3d12_x/enums/d3d12_texture_layout) のメンバーの 1 つを指定します。

*Flags*\
型: D3D12\_RESOURCE\_FLAGS

[D3D12\_RESOURCE\_FLAGS](/reference/graphics/d3d12_x/enums/d3d12_resource_flags) 列挙定数としてビットごとの OR で結合されたフラグ。

*SamplerFeedbackMipRegion*\
型: D3D12\_MIP\_REGION

[D3D12\_MIP\_REGION](/reference/graphics/d3d12_xs/structs/d3d12_mip_region) 構造体。

## 解説

解説については、[D3D12\_RESOURCE\_DESC1](/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 consoles)](/ja-jp/reference/graphics/d3d12/interfaces/id3d12device10/methods/id3d12device10_createcommittedresource3_public.md)
- [CreatePlacedResource2 (XBOX Series consoles)](/ja-jp/reference/graphics/d3d12/interfaces/id3d12device10/methods/id3d12device10_createplacedresource2_public.md)
- [D3D12_PROTECTED_RESOURCE_SESSION_DESC1](/ja-jp/reference/graphics/d3d12/structs/d3d12_protected_resource_session_desc1_public.md)
- [D3D12_DEPTH_STENCIL_DESC1](/ja-jp/reference/graphics/d3d12/structs/d3d12_depth_stencil_desc1_public.md)
- [D3D12_ROOT_SIGNATURE_DESC1](/ja-jp/reference/graphics/d3d12/structs/d3d12_root_signature_desc1_public.md)
