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

> Retrieves the amount of memory required for the specified runtime parameter resource for a meta command, for the specified stage.

Retrieves the amount of memory required for the  specified  runtime parameter resource for a meta command, for the specified stage.

## Syntax

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

### Parameters

*Stage \[in]*\
Type: D3D12\_META\_COMMAND\_PARAMETER\_STAGE

A **D3D12\_META\_COMMAND\_PARAMETER\_STAGE** specifying the stage to which the parameter belongs.

*ParameterIndex \[in]*\
Type: UINT

The zero-based index of the parameter within the stage.

### Return value

Type: UINT64

The number of bytes required for the  specified  runtime parameter resource.

## Requirements

**Header:** d3d12\_xs.h or d3d12\_x.h\
**Library:** d3d12\_xs.lib or d3d12\_x.lib\
**Supported Platforms**: XBOX Series consoles and XBOX One family

## See Also

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


## Related topics

- [GetResourceAllocationInfo1 (XBOX Series consoles)](/reference/graphics/d3d12/interfaces/id3d12device4/methods/id3d12device4_getresourceallocationinfo1_public.md)
- [GetResourceAllocationInfo](/reference/graphics/d3d12/interfaces/id3d12device/methods/id3d12device_getresourceallocationinfo_public.md)
- [PFCatalogGetItemsGetResultSize](/services/playfab/api-references/c/pfcatalog/functions/pfcataloggetitemsgetresultsize.md)
- [PFCatalogGetItemGetResultSize](/services/playfab/api-references/c/pfcatalog/functions/pfcataloggetitemgetresultsize.md)
- [PFGroupsGetGroupGetResultSize](/services/playfab/api-references/c/pfgroups/functions/pfgroupsgetgroupgetresultsize.md)
