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

# ID3D12MetaCommand

> Represents a meta command. A meta command is a Direct3D 12 object representing an algorithm that is accelerated by independent hardware vendors (IHVs).

Represents a meta command. A meta command is a Direct3D 12 object representing an algorithm that is accelerated by independent hardware vendors (IHVs). It's an opaque reference to a command generator that is implemented by the driver.

The lifetime of a meta command is tied to the lifetime of the command list that references it. So, you should only free a meta command if no command list referencing it is currently executing on the GPU.

A meta command can encapsulate a set of pipeline state objects (PSOs), bindings, intermediate resource states, and Draw/Dispatch calls. You can think of the signature of a meta command as being similar to a C-style function, with multiple in/out parameters, and no return value.

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

[ID3D12Pageable](https://docs.xbox.com/reference/graphics/d3d12/interfaces/id3d12pageable/id3d12pageable_public.md)


## Related topics

- [InitializeMetaCommand (XBOX Series consoles)](https://docs.xbox.com/reference/graphics/d3d12/interfaces/id3d12graphicscommandlist4/methods/id3d12graphicscommandlist4_initializemetacommand_public.md)
- [CreateMetaCommand (XBOX Series consoles)](https://docs.xbox.com/reference/graphics/d3d12/interfaces/id3d12device5/methods/id3d12device5_createmetacommand_public.md)
- [GetRequiredParameterResourceSize](https://docs.xbox.com/reference/graphics/d3d12/interfaces/id3d12metacommand/methods/id3d12metacommand_getrequiredparameterresourcesize_public.md)
- [D3D12_META_COMMAND_DESC](https://docs.xbox.com/reference/graphics/d3d12/structs/d3d12_meta_command_desc_public.md)
- [D3D12_META_COMMAND_PARAMETER_STAGE](https://docs.xbox.com/reference/graphics/d3d12/enums/d3d12_meta_command_parameter_stage_public.md)
