Partager via


ShaderCompiler.CompileFromFile Method

Compiles a shader from a file or stream containing shader source code.

Overload List

Name Description
ShaderCompiler.CompileFromFile (Stream, CompilerMacro[], CompilerIncludeHandler, CompilerOptions, String, ShaderProfile, TargetPlatform) Compiles a shader from a stream containing the shader source code.
ShaderCompiler.CompileFromFile (Stream, Int32, CompilerMacro[], CompilerIncludeHandler, CompilerOptions, String, ShaderProfile, TargetPlatform) Compiles a shader from a stream containing the shader source code, specifying the number of bytes in the stream.
ShaderCompiler.CompileFromFile (String, CompilerMacro[], CompilerIncludeHandler, CompilerOptions, String, ShaderProfile, TargetPlatform) Compiles a shader from file containing the shader source code.

See Also

Reference

ShaderCompiler Class
ShaderCompiler Members
Microsoft.Xna.Framework.Graphics Namespace