forked from Misaki/GhostEngine
Update namespace
This commit is contained in:
53
Ghost.Shader/Compiler/SDLSyntax.cs
Normal file
53
Ghost.Shader/Compiler/SDLSyntax.cs
Normal file
@@ -0,0 +1,53 @@
|
||||
namespace Ghost.SDL.Compiler;
|
||||
|
||||
internal struct FunctionCallDeclaration
|
||||
{
|
||||
public Token name;
|
||||
public List<Token>? arguments;
|
||||
}
|
||||
|
||||
internal struct PropertyDeclaration
|
||||
{
|
||||
public Token scope;
|
||||
public Token type;
|
||||
public Token name;
|
||||
public FunctionCallDeclaration? propertyConstructor;
|
||||
}
|
||||
|
||||
internal struct ValueDeclaration
|
||||
{
|
||||
public Token name;
|
||||
public Token value;
|
||||
}
|
||||
|
||||
internal class PropertiesSyntax
|
||||
{
|
||||
public List<PropertyDeclaration>? properties;
|
||||
public List<FunctionCallDeclaration>? functionCalls;
|
||||
}
|
||||
|
||||
internal class PipelineSyntax
|
||||
{
|
||||
public List<ValueDeclaration>? values;
|
||||
public List<FunctionCallDeclaration>? functionCalls;
|
||||
}
|
||||
|
||||
internal class PassSyntax
|
||||
{
|
||||
public Token name;
|
||||
public PipelineSyntax? localPipeline;
|
||||
public PropertiesSyntax? localProperties;
|
||||
public List<Token>? defines;
|
||||
public List<Token>? includes;
|
||||
public List<FunctionCallDeclaration>? keywords;
|
||||
public List<FunctionCallDeclaration>? functionCalls;
|
||||
}
|
||||
|
||||
internal class SDLSyntax
|
||||
{
|
||||
public Token name;
|
||||
public PropertiesSyntax? properties;
|
||||
public PipelineSyntax? pipeline;
|
||||
public List<PassSyntax>? passes;
|
||||
public List<FunctionCallDeclaration>? functionCalls;
|
||||
}
|
||||
Reference in New Issue
Block a user