ID3DXFragmentLinker

The ID3DXFragmentLinker interface is used to link shader fragments at runtime.

ID3DXFragmentLinker Members

Method Description
ID3DXFragmentLinker::AddFragments Add the fragments from a buffer to the fragment linker.
ID3DXFragmentLinker::ClearCache Clear the fragment linker cache.
ID3DXFragmentLinker::GetAllFragments Allocates a buffer and copies the fragment data into it.
ID3DXFragmentLinker::GetDevice Get the device.
ID3DXFragmentLinker::GetFragment Create a buffer containing a linker fragment. This can be used for saving the fragment to disk.
ID3DXFragmentLinker::GetFragmentDesc Get the D3DXFRAGMENT_DESC structure which describes the named fragment.
ID3DXFragmentLinker::GetFragmentHandleByIndex Get a fragment handle by index.
ID3DXFragmentLinker::GetFragmentHandleByName Get a fragment handle by name.
ID3DXFragmentLinker::GetNumberOfFragments Get the number of fragments in the linker.
ID3DXFragmentLinker::LinkPixelShader Link a compiled pixel shader at run time. This is a very lightweight operation.
ID3DXFragmentLinker::LinkShader Link a compiled shader at run time. This is a very lightweight operation.
ID3DXFragmentLinker::LinkVertexShader Link a compiled vertex shader at run time. This is a very lightweight operation.

Remarks

The LPD3DXFRAGMENTLINKER type is defined as a pointer to the ID3DXFragmentLinker interface.

typedef ID3DXFragmentLinker *LPD3DXFRAGMENTLINKER;

Requirements

Header: Declared in D3dx9shader.h.

Import Library: Use D3dx9.lib.