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

> Describes a meta command.

Describes a meta command.

## Syntax

```cpp theme={null}
typedef struct D3D12_META_COMMAND_DESC
{
    GUID Id;
    LPCWSTR Name;
    D3D12_GRAPHICS_STATES InitializationDirtyState;
    D3D12_GRAPHICS_STATES ExecutionDirtyState;
} D3D12_META_COMMAND_DESC
```

### Members

*Id*\
Type: GUID

A [GUID](https://learn.microsoft.com/en-us/windows/win32/api/guiddef/ns-guiddef-guid) uniquely identifying the meta command.

*Name*\
Type: LPCWSTR

The meta command name.

*InitializationDirtyState*\
Type: D3D12\_GRAPHICS\_STATES

Declares the command list states that are modified by the call to initialize the meta command. If all state bits are set, then that's equivalent to calling [ID3D12GraphicsCommandList::ClearState](/reference/graphics/d3d12/interfaces/id3d12graphicscommandlist/methods/id3d12graphicscommandlist_clearstate_public).

*ExecutionDirtyState*\
Type: D3D12\_GRAPHICS\_STATES

Declares the command list states that are modified by the call to execute the meta command. If all state bits are set, then that's equivalent to calling [ID3D12GraphicsCommandList::ClearState](/reference/graphics/d3d12/interfaces/id3d12graphicscommandlist/methods/id3d12graphicscommandlist_clearstate_public).

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

- [EnumerateMetaCommands (XBOX Series consoles)](/reference/graphics/d3d12/interfaces/id3d12device5/methods/id3d12device5_enumeratemetacommands_public.md)
- [D3D12_META_COMMAND_PARAMETER_DESC](/reference/graphics/d3d12/structs/d3d12_meta_command_parameter_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)
