From ab711b56108ffe9f2344f6953e18862d5f9ed12d Mon Sep 17 00:00:00 2001 From: Niels Bross Date: Mon, 25 Aug 2025 21:56:08 +0200 Subject: [PATCH] Minor experiment --- Semantic_Analysis.jai | 12 ++++++++++++ module.jai | 8 -------- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/Semantic_Analysis.jai b/Semantic_Analysis.jai index 1dbae4f..2a48198 100644 --- a/Semantic_Analysis.jai +++ b/Semantic_Analysis.jai @@ -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, "/"); diff --git a/module.jai b/module.jai index c24a55b..2f81e49 100644 --- a/module.jai +++ b/module.jai @@ -232,14 +232,6 @@ from_files :: (paths : []string) -> Compile_Result { return result; } -// Compilation_Result :: struct { -// messages : [..]Compiler_Message; - -// had_error : bool; - -// collection : Shader_Variant_Collection; -// } - pretty_print_field :: (field : *Field) -> string { builder : String_Builder; init_string_builder(*builder,, temp);