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

@@ -407,10 +407,10 @@ run_codegen_test :: (path : string, output_type : Output_Type = 0) -> Result, Co
return result, codegen_result;
}
run_compile_test :: (path : string, output_type : Output_Type = 0) -> Result, Compilation_Result {
run_compile_test :: (path : string, output_type : Output_Type = 0) -> Result, Compile_Result {
compiler : Shader_Compiler;
result : Result;
compilation_result := compile_file(*compiler, path);
compilation_result := compile_file(*compiler, .[path]);
print("\n");
if compilation_result.had_error {
@@ -470,7 +470,7 @@ run_test :: (file_path : string, stage_flags : Stage_Flags, results : *[..]Resul
}
if stage_flags & .Compile {
result = run_compile_test(file_path, output_type);
result, compilation_result := run_compile_test(file_path, output_type);
}
}