Efficiently creates a compute pipeline state object that’s derived from another pipeline state object.
public:
HRESULT D3DAPI CreateDerivedComputePipelineStateX(
ID3D12PipelineState *pSrcPipelineState,
UINT NumDescs,
const D3D12XBOX_DERIVED_COMPUTE_STATE_DESC *pDescs,
REFIID riid,
void **ppDerivedPipelineState
)
pSrcPipelineState
Type: ID3D12PipelineState *
[in] A pointer to the source pipeline state.
NumDescs
Type: UINT
[in] The number of derived compute state descriptions in pDescs.
pDescs
Type: D3D12XBOX_DERIVED_COMPUTE_STATE_DESC *
[in] A pointer to an array of derived compute state descriptions.
riid
Type: REFIID
[in] The globally unique identifier (GUID) for the pipeline state interface (ID3D12PipelineState. The REFIID, or GUID, of the interface to the pipeline state can be obtained by using the __uuidof() macro.
ppDerivedPipelineState
Type: void **
[out] The resulting derived compute pipeline state object.
Type: HRESULT D3DAPI
One of the Direct3D 12 return codes.
This method provides an efficient means of creating a graphics Pipeline State object that is derived from another Pipeline State object. The new derived object is created using the source object’s state as the base state while allowing shader limits to be changed. Any state not overridden will be set to the same values as the source Pipeline State object.
Caller responsibilities:
Header: Declared in d3d12_x.h.
Library: Use d3d12_x.lib.