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

# GetRequiredParameterResourceSize

> 針對指定的階段，擷取中繼命令之指定執行階段參數資源所需的記憶體數量。

針對指定的階段，擷取中繼命令之指定執行階段參數資源所需的記憶體數量。

## 語法

```cpp theme={null}
UINT64 GetRequiredParameterResourceSize(
    D3D12_META_COMMAND_PARAMETER_STAGE Stage,
    UINT ParameterIndex
)
```

### 參數

*Stage \[in]*\
類型：D3D12\_META\_COMMAND\_PARAMETER\_STAGE

**D3D12\_META\_COMMAND\_PARAMETER\_STAGE**，指定參數所屬的階段。

*ParameterIndex \[in]*\
類型：UINT

參數在該階段內以零為起始的索引。

### 傳回值

類型：UINT64

指定之執行階段參數資源所需的位元組數。

## 需求

**標頭:** d3d12\_xs.h 或 d3d12\_x.h\
**程式庫:** d3d12\_xs.lib 或 d3d12\_x.lib\
**支援的平台**: XBOX Series 主機和 XBOX One 系列

## 另請參閱

[ID3D12MetaCommand](/zh-TW/reference/graphics/d3d12/interfaces/id3d12metacommand/id3d12metacommand_public)


## Related topics

- [Get Policy](/api-reference/authentication/get-policy.md)
- [D3D12_META_COMMAND_PARAMETER_DESC](/zh-TW/reference/graphics/d3d12/structs/d3d12_meta_command_parameter_desc_public.md)
- [更新原則](/zh-TW/services/playfab/api-references/rest/admin/authentication/update-policy.md)
- [Update Policy](/api-reference/authentication/update-policy.md)
- [取得原則](/zh-TW/services/playfab/api-references/rest/admin/authentication/get-policy.md)
