ID3DXFragmentLinker::AddFragments

Add the fragments from a buffer to the fragment linker.

HRESULT AddFragments(
  CONST DWORD* pFragments
);

Parameters

pFragments
[in] Pointer to a buffer containing shader fragments. See D3DXGatherFragments.

Return Values

If the function succeeds, the return value is D3D_OK. If the function fails, the return value can be one of the following: D3DXERR_DUPLICATENAMEDFRAGMENT, E_FAIL.

Requirements

Header: Declared in D3dx9shader.h.