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

# D3D12_META_COMMAND_PARAMETER_DESC

> Describes a parameter to a meta command.

Describes a parameter to a meta command.

## Syntax

```cpp theme={null}
typedef struct D3D12_META_COMMAND_PARAMETER_DESC
{
    LPCWSTR Name;
    D3D12_META_COMMAND_PARAMETER_TYPE Type;
    D3D12_META_COMMAND_PARAMETER_FLAGS Flags;
    D3D12_RESOURCE_STATES RequiredResourceState;
    UINT StructureOffset;
} D3D12_META_COMMAND_PARAMETER_DESC
```

### Members

*Name*\
Type: LPCWSTR

The parameter name.

*Type*\
Type: D3D12\_META\_COMMAND\_PARAMETER\_TYPE

A [D3D12\_META\_COMMAND\_PARAMETER\_TYPE](/reference/graphics/d3d12/enums/d3d12_meta_command_parameter_type_public) specifying the parameter type.

*Flags*\
Type: D3D12\_META\_COMMAND\_PARAMETER\_FLAGS

A [D3D12\_META\_COMMAND\_PARAMETER\_FLAGS](/reference/graphics/d3d12/enums/d3d12_meta_command_parameter_flags_public) specifying the parameter flags.

*RequiredResourceState*\
Type: D3D12\_RESOURCE\_STATES

A [D3D12\_RESOURCE\_STATES](/reference/graphics/d3d12_x/enums/d3d12_resource_states) specifying the expected state of a resource parameter.

*StructureOffset*\
Type: UINT

The 4-byte aligned offset for this parameter, within the structure containing the parameter values, which you pass when creating/initializing/executing the meta command, as appropriate.

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


## Related topics

- [EnumerateMetaCommandParameters (XBOX Series consoles)](/reference/graphics/d3d12/interfaces/id3d12device5/methods/id3d12device5_enumeratemetacommandparameters_public.md)
- [D3D12_META_COMMAND_DESC](/reference/graphics/d3d12/structs/d3d12_meta_command_desc_public.md)
- [D3D12_META_COMMAND_PARAMETER_STAGE](/reference/graphics/d3d12/enums/d3d12_meta_command_parameter_stage_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)
