Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Queries reflection metadata about the parameters of the specified meta command.
Syntax
HRESULT EnumerateMetaCommandParameters(
[in] REFGUID CommandId,
[in] D3D12_META_COMMAND_PARAMETER_STAGE Stage,
[out, optional] UINT *pTotalStructureSizeInBytes,
[in, out] UINT *pParameterCount,
[out, optional] D3D12_META_COMMAND_PARAMETER_DESC *pParameterDescs
);
Parameters
[in] CommandId
Type: REFIID
A reference to the globally unique identifier (GUID) of the meta command whose parameters you wish to be returned in pParameterDescs.
[in] Stage
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.
[out, optional] pTotalStructureSizeInBytes
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.
[in, out] pParameterCount
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.
[out, optional] pParameterDescs
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
Requirement | Value |
---|---|
Target Platform | Windows |
Header | d3d12.h |