D3DX12ParsePipelineStream function

Parses a pipeline state stream description, calling a user-defined callback for each subobject instance parsed.

Syntax

HRESULT inline D3DX12ParsePipelineStream(
   const D3D12_PIPELINE_STATE_STREAM_DESC &Desc,
         ID3DX12PipelineParserCallbacks   *pCallbacks
);

Parameters

Desc [ref]

Type: const D3D12_PIPELINE_STATE_STREAM_DESC

The pipeline state stream description to parse.

pCallbacks

Type: ID3DX12PipelineParserCallbacks*

A structure that specifies the callbacks to call for each subobject type and additional callbacks to call in the event of a parsing error.

Return value

Type: HRESULT

This method returns an HRESULT success (S_OK or E_INVALIDARG error if an unknown subobject type is encountered, if the stream description is empty, null, or contains duplicate subobjects (including derived subobjects), or if pCallbacks is null. In each case that E_INVALIDARG is returned, a corresponding callback is first called.

Requirements

Header
D3dx12.h
Library
D3D12.lib
DLL
D3D12.dll

See also

Helper Functions for D3D12