FragmentLinker.LinkVertexShader(String,ShaderFlags,EffectHandle[],String) Method (Microsoft.DirectX.Direct3D)
Links a compiled shader at run time.
Definition
Visual Basic Public Function LinkVertexShader( _
ByVal profile As String, _
ByVal flags As ShaderFlags, _
ByVal fragmentHandles() As EffectHandle, _
ByRef errors As String _
) As VertexShaderC# public VertexShader LinkVertexShader(
string profile,
ShaderFlags flags,
EffectHandle[] fragmentHandles,
out string errors
);C++ public:
VertexShader^ LinkVertexShader(
String^ profile,
ShaderFlags flags,
array<EffectHandle^>^ fragmentHandles,
[Out] String^% errors
);JScript public function LinkVertexShader(
profile : String,
flags : ShaderFlags,
fragmentHandles : EffectHandle[],
errors : String
) : VertexShader;
Parameters
profile System.String
A String that contains the vertex 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 that contains a listing of errors and warnings that were encountered during compilation.
Return Value
Microsoft.DirectX.Direct3D.VertexShader
A VertexShader object that contains the linked vertex shader.
Remarks
Exceptions
The method call is invalid. For example, a method's parameter might contain an invalid value.
The data is invalid.
Microsoft Direct3D could not allocate sufficient memory to complete the call.