3 using SiliconStudio.Shaders.Ast;
4 using SiliconStudio.Shaders.Grammar.Hlsl;
6 namespace SiliconStudio.Shaders.Parser.Hlsl
41 return ShaderParser.GetParser<
HlslGrammar>().TryPreProcessAndParse(source, sourceFileName, macros, includeDirectories);
52 public static Shader Parse(
string source,
string sourceFileName,
ShaderMacro[] macros = null, params
string[] includeDirectories)
54 return ShaderParser.GetParser<
HlslGrammar>().PreProcessAndParse(source, sourceFileName, macros, includeDirectories);
Macro to be used with PreProcessor.
static ParsingResult TryPreProcessAndParse(string source, string sourceFileName, ShaderMacro[] macros=null, params string[] includeDirectories)
Parses the specified source.
static Shader Parse(string source, string sourceFileName, ShaderMacro[] macros=null, params string[] includeDirectories)
Parses the specified source.
static void Initialize()
Initializes this instance.
Toplevel container of a shader parsing result.
Methods used to create the Abstract Syntax Tree..