Minor experiment

This commit is contained in:
2025-08-25 21:56:08 +02:00
parent f6801e3eeb
commit ab711b5610
2 changed files with 12 additions and 8 deletions

View File

@@ -1660,6 +1660,18 @@ types_compatible :: (checker : *Semantic_Checker, lhs : Type_Variable_Handle, rh
return false; return false;
} }
// add_type :: (checker : *Semantic_Checker, kind : Type_Kind, members : ..Type_Kind) {
// }
// add_builtins :: (checler : *Semantic_Checker) {
// //~ Types
// add_type(checker, "float2", .Struct, .Float, .Float);
// add_type(checker, "float3", .Struct, .Float, .Float, .Float);
// //~ Functions
// }
add_hlsl_builtins :: (checker : *Semantic_Checker) { add_hlsl_builtins :: (checker : *Semantic_Checker) {
source_location := #location().fully_pathed_filename; source_location := #location().fully_pathed_filename;
path_array := split(source_location, "/"); path_array := split(source_location, "/");

View File

@@ -232,14 +232,6 @@ from_files :: (paths : []string) -> Compile_Result {
return result; return result;
} }
// Compilation_Result :: struct {
// messages : [..]Compiler_Message;
// had_error : bool;
// collection : Shader_Variant_Collection;
// }
pretty_print_field :: (field : *Field) -> string { pretty_print_field :: (field : *Field) -> string {
builder : String_Builder; builder : String_Builder;
init_string_builder(*builder,, temp); init_string_builder(*builder,, temp);