Microsoft DirectX 9.0 SDK Update (October 2004)

FragmentLinker.LinkPixelShader Method

Language:

Note: This documentation is preliminary and is subject to change.

Links a compiled pixel shader at run time.

Definition

Visual Basic .NET Public Function LinkPixelShader( _
    ByVal profile As String, _
    ByVal flags As ShaderFlags, _
    ByVal fragmentHandles() As EffectHandle, _
    ByRef errors As String _
) As PixelShader
C# public PixelShader LinkPixelShader(
    string profile,
    ShaderFlags flags,
    EffectHandle[] fragmentHandles,
    out string errors
);
Managed C++ public: PixelShader* LinkPixelShader(
    String *profile,
    ShaderFlags flags,
    EffectHandle *fragmentHandles __gc[],
    String **errors
);
JScript .NET public function LinkPixelShader(
    profile : String,
    flags : ShaderFlags,
    fragmentHandles : EffectHandle[],
    errors : String
) : PixelShader;

Parameters

profile System.String. A String Leave Site that contains the pixel shader profile that determines the shader instruction set.
flags Microsoft.DirectX.Direct3D.ShaderFlags. A ShaderFlags enumeration that specifies the link options to use.
fragmentHandles Microsoft.DirectX.Direct3D.EffectHandle[]. Array of EffectHandle objects that represent the handles of the fragments to link.
errors System.String. A String Leave Site that contains a listing of errors and warnings that were encountered during compilation.

Return Value

Microsoft.DirectX.Direct3D.PixelShader . A PixelShader object that contains the linked pixel shader.

Remarks

Exceptions
InvalidCallException The method call is invalid. For example, a method's parameter might contain an invalid value.
InvalidDataException The data is invalid.
OutOfMemoryException Leave Site Microsoft® Direct3D® could not allocate sufficient memory to complete the call.


© 2004 Microsoft Corporation. All rights reserved. Terms of use.

Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center