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;
}
// 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) {
source_location := #location().fully_pathed_filename;
path_array := split(source_location, "/");