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

> リソースの割り当てに必要なパラメーターを記述します。

リソースの割り当てに必要なパラメーターを記述します。

## 構文

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

### メンバー

*SizeInBytes*\
型: UINT64

リソースのサイズ (バイト単位)。

*Alignment*\
型: UINT64

リソースのアラインメント値。4KB (4096)、64KB (65536)、または 4MB (4194304) アラインメントのいずれかです。

## 解説

この構造体は、[ID3D12Device::GetResourceAllocationInfo](/reference/graphics/d3d12/interfaces/id3d12device/methods/id3d12device_getresourceallocationinfo_public) および [ID3D12Device::GetResourceAllocationInfo1](/reference/graphics/d3d12/interfaces/id3d12device4/methods/id3d12device4_getresourceallocationinfo1_public) メソッドで使用されます。

## 要件

**ヘッダー:** d3d12\_xs.h または d3d12\_x.h\
**ライブラリ:** d3d12\_xs.lib または d3d12\_x.lib\
**サポートされるプラットフォーム**: XBOX Series 本体および XBOX One ファミリ

## 関連項目

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

[コア構造体](https://learn.microsoft.com/en-us/windows/win32/direct3d12/direct3d-12-structures)


## Related topics

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