> ## 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](/reference/graphics/d3d12/interfaces/id3d12metacommand/id3d12metacommand_public)


## Related topics

- [D3D12_META_COMMAND_PARAMETER_DESC](/ja-jp/reference/graphics/d3d12/structs/d3d12_meta_command_parameter_desc_public.md)
- [XAsyncGetResult](/ja-jp/reference/system/xasyncprovider/functions/xasyncgetresult.md)
- [GetResourceAllocationInfo](/ja-jp/reference/graphics/d3d12/interfaces/id3d12device/methods/id3d12device_getresourceallocationinfo_public.md)
- [XAsyncGetResultSize](/ja-jp/reference/system/xasync/functions/xasyncgetresultsize.md)
- [XPackageGetMountPathSize](/ja-jp/reference/system/xpackage/functions/xpackagegetmountpathsize.md)
