ShaderLoader.CompileShaderFromFile Method
Language: Visual Basic .NET C# Managed C++ JScript .NET (Show All)
Note: This documentation is preliminary and is subject to change.
Definition
Visual Basic .NET
Public Shared Function CompileShaderFromFile ( _ ByVal file As String , _ ByVal functionName As String , _ ByVal preprocessorDefines () As Macro , _ ByVal includeFile As Include , _ ByVal profile As String , _ ByVal flags As ShaderFlags _ ) As GraphicsStream
C#
public static GraphicsStream CompileShaderFromFile ( string file , string functionName , Macro [] preprocessorDefines , Include includeFile , string profile , ShaderFlags flags );
Managed C++
public: static GraphicsStream * CompileShaderFromFile ( String *file , String *functionName , Macro preprocessorDefines __gc[], Include *includeFile , String *profile , ShaderFlags flags );
JScript .NET
public static function CompileShaderFromFile ( file : String , functionName : String , preprocessorDefines : Macro [], includeFile : Include , profile : String , flags : ShaderFlags ) :
GraphicsStream ;
Parameters
Return Value
Microsoft.DirectX.GraphicsStream
. A GraphicsStream object that contains the compiled shader code, as well as any embedded debug and symbol table information.
Remarks
© 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