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

> 描述配置資源所需的參數，包括位移。

描述配置資源所需的參數，包括位移。

## 語法

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

### 成員

*Offset*\
類型：UINT64

資源的位移 (以位元組為單位)。

*Alignment*\
類型：UINT64

資源的對齊值；為 4KB (4096)、64KB (65536) 或 4MB (4194304) 對齊其中之一。

*SizeInBytes*\
類型：UINT64

資源的大小 (以位元組為單位)。

## 備註

此結構由 [ID3D12Device::GetResourceAllocationInfo1](/zh-TW/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 系列

## 另請參閱

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


## Related topics

- [GetResourceAllocationInfo1 (XBOX Series 主機)](/zh-TW/reference/graphics/d3d12/interfaces/id3d12device4/methods/id3d12device4_getresourceallocationinfo1_public.md)
- [D3D12_RESOURCE_ALLOCATION_INFO](/zh-TW/reference/graphics/d3d12/structs/d3d12_resource_allocation_info_public.md)
- [D3D12_DRED_ALLOCATION_TYPE](/zh-TW/reference/graphics/d3d12/enums/d3d12_dred_allocation_type_public.md)
- [D3D12_DRED_ALLOCATION_NODE](/zh-TW/reference/graphics/d3d12/structs/d3d12_dred_allocation_node_public.md)
- [D3D12_RESOURCE_BARRIER](/zh-TW/reference/graphics/d3d12/structs/d3d12_resource_barrier_public.md)
