Minor experiment
This commit is contained in:
@@ -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, "/");
|
||||||
|
|||||||
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user