Skip to main content
Initializes the specified meta command. You must initialize a meta command at least once prior (on the GPU’s timeline) to executing it. Initializing gives the implementation the chance to perform any work necessary to accelerate the invocation of the meta command. You must supply the sufficient resource parameters, including the persistent cache resource.

Syntax

Parameters

pMetaCommand [in]
Type: ID3D12MetaCommand *
A pointer to an ID3D12MetaCommand representing the meta command to initialize. pInitializationParametersData [in, optional]
Type: const void *
An optional pointer to a constant structure containing the values of the parameters for initializing the meta command. InitializationParametersDataSizeInBytes [in]
Type: SIZE_T
A SIZE_T containing the size of the structure pointed to by pInitializationParametersData, if set, otherwise 0.

Return value

Type: void 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

ID3D12GraphicsCommandList4
Last modified on August 20, 2026