> ## Documentation Index
> Fetch the complete documentation index at: https://docs.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](https://docs.xbox.com/reference/graphics/d3d12/interfaces/id3d12metacommand/id3d12metacommand_public.md)


## Related topics

- [GET (/users/{ownerId}/people/avoid)](https://docs.xbox.com/reference/live/rest/uri/privacy/uri-privacyusersxuidpeopleavoidget.md)
- [GET (/users/{ownerId}/people/mute)](https://docs.xbox.com/reference/live/rest/uri/privacy/uri-privacyusersowneridpeoplemuteget.md)
- [GetResourceAllocationInfo1 (XBOX Series consoles)](https://docs.xbox.com/reference/graphics/d3d12/interfaces/id3d12device4/methods/id3d12device4_getresourceallocationinfo1_public.md)
- [/users/{ownerId}/people/avoid](https://docs.xbox.com/reference/live/rest/uri/privacy/uri-privacyusersxuidpeopleavoid.md)
- [/users/{ownerId}/people/mute](https://docs.xbox.com/reference/live/rest/uri/privacy/uri-privacyusersowneridpeoplemute.md)
