forked from Misaki/GhostEngine
Refactoring Rendering backend
This commit is contained in:
13
Ghost.Shader/ParserBlock/IBlockParser.cs
Normal file
13
Ghost.Shader/ParserBlock/IBlockParser.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
namespace Ghost.Shader.ParserBlock;
|
||||
|
||||
internal interface IBlockParser<T>
|
||||
{
|
||||
public static abstract bool ShouldEnter(Token token);
|
||||
|
||||
public static abstract T Parse(TokenStreamSlice ts);
|
||||
}
|
||||
|
||||
internal interface IBlockParser<T, U> : IBlockParser<T>
|
||||
{
|
||||
public U SemanticAnalysis(T syntax, List<ShaderError> errors);
|
||||
}
|
||||
Reference in New Issue
Block a user