More work towards the new API

This commit is contained in:
2025-08-13 22:22:32 +02:00
parent 7787d1307b
commit af3e298b29
5 changed files with 75 additions and 12 deletions

View File

@@ -145,7 +145,21 @@ Compiled_File :: struct {
file : Input_File;
tokens : Token_Stream;
ast_root : *AST_Node;
ast_nodes : [..]AST_Node;
ast_nodes : [..]AST_Node;
vertex_entry_point : *AST_Node;
pixel_entry_point : *AST_Node;
constant_buffers : Static_Array(Type_Variable_Handle, 16);
scope_stack : Scope_Stack;
type_variables : [..]Type_Variable;
type_var_arena : Arena;
type_var_allocator : Allocator;
property_name : string;
output_text : string;
}
Compile_Result :: struct {
@@ -368,9 +382,9 @@ compile_file :: (compiler : *Shader_Compiler, paths : []string) -> Compile_Resul
}
lex(*result);
// parse(*result);
// check(*result);
// codegen(*result);
parse(*result);
check(*result);
codegen(*result);
return result;
}