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

# EnumerateMetaCommandParameters (XBOX Series consoles)

> Queries reflection metadata about the parameters of the specified meta command.

Queries reflection metadata about the parameters of the specified meta command.

## Syntax

```cpp theme={null}
HRESULT EnumerateMetaCommandParameters(
    const GUID & CommandId,
    D3D12_META_COMMAND_PARAMETER_STAGE Stage,
    UINT  pTotalStructureSizeInBytes,
    UINT  pParameterCount,
    D3D12_META_COMMAND_PARAMETER_DESC  pParameterDescs
)
```

### Parameters

*CommandId \[in]*\
Type: const GUID &

A reference to the globally unique identifier (GUID) of the meta command whose parameters you wish to be returned in <i>pParameterDescs</i>.

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

A [D3D12\_META\_COMMAND\_PARAMETER\_STAGE](/reference/graphics/d3d12/enums/d3d12_meta_command_parameter_stage_public) specifying the stage of the parameters that you wish to be included in the query.

*pTotalStructureSizeInBytes \[out, optional]*\
Type: UINT \*

An optional pointer to a [UINT](https://learn.microsoft.com/en-us/windows/desktop/WinProg/windows-data-types) containing the size of the structure containing the parameter values, which you pass when creating/initializing/executing the meta command, as appropriate.

*pParameterCount \[in, out]*\
Type: UINT \*

A pointer to a [UINT](https://learn.microsoft.com/en-us/windows/desktop/WinProg/windows-data-types) containing the number of parameters to query for. This field determines the size of the <i>pParameterDescs</i> array, unless <i>pParameterDescs</i> is **nullptr**.

*pParameterDescs \[out, optional]*\
Type: D3D12\_META\_COMMAND\_PARAMETER\_DESC \*

An optional pointer to an array of  [D3D12\_META\_COMMAND\_PARAMETER\_DESC](/reference/graphics/d3d12/structs/d3d12_meta_command_parameter_desc_public) containing the descriptions of the parameters. Pass **nullptr** to have the parameter count returned in <i>pParameterCount</i>.

### Return value

Type: HRESULT

If this method succeeds, it returns **S\_OK**. Otherwise, it returns an **HRESULT** error code.

## Requirements

**Header:** d3d12\_xs.h\
**Library:** d3d12\_xs.lib\
**Supported Platforms**: XBOX Series consoles

## See Also

[ID3D12Device5](/reference/graphics/d3d12/interfaces/id3d12device5/id3d12device5_public)


## Related topics

- [EnumerateMetaCommands (XBOX Series consoles)](/reference/graphics/d3d12/interfaces/id3d12device5/methods/id3d12device5_enumeratemetacommands_public.md)
- [InitializeMetaCommand (XBOX Series consoles)](/reference/graphics/d3d12/interfaces/id3d12graphicscommandlist4/methods/id3d12graphicscommandlist4_initializemetacommand_public.md)
- [CreateMetaCommand (XBOX Series consoles)](/reference/graphics/d3d12/interfaces/id3d12device5/methods/id3d12device5_createmetacommand_public.md)
- [D3D12_META_COMMAND_PARAMETER_TYPE](/reference/graphics/d3d12/enums/d3d12_meta_command_parameter_type_public.md)
- [D3D12_META_COMMAND_PARAMETER_FLAGS](/reference/graphics/d3d12/enums/d3d12_meta_command_parameter_flags_public.md)
