Skip to main content
Queries reflection metadata about the parameters of the specified meta command.

Syntax

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 pParameterDescs. Stage [in]
Type: D3D12_META_COMMAND_PARAMETER_STAGE
A D3D12_META_COMMAND_PARAMETER_STAGE 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 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 containing the number of parameters to query for. This field determines the size of the pParameterDescs array, unless pParameterDescs is nullptr. pParameterDescs [out, optional]
Type: D3D12_META_COMMAND_PARAMETER_DESC *
An optional pointer to an array of D3D12_META_COMMAND_PARAMETER_DESC containing the descriptions of the parameters. Pass nullptr to have the parameter count returned in pParameterCount.

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
Last modified on August 20, 2026