Microsoft DirectX 8.1 (Visual Basic) |
Assembles an ASCII description of a pixel or vertex shader into binary form, where the shader source is in memory.
object.AssembleShader( _ SrcData As Any, _ Flags As Long, _ Constants As D3DXBuffer) As D3DXBuffer
Returns a D3DXBuffer object, containing the compiled object code.
If the method fails, an error is raised and Err.Number can be set to one of the following values.
D3DERR_INVALIDCALL |
D3DXERR_INVALIDDATA |
E_OUTOFMEMORY |
For information on trapping errors, see the Microsoft® Visual Basic® Error Handling topic.