Change typenames. Bug in hlsl builtins

This commit is contained in:
2024-06-26 13:49:39 +02:00
parent 1bf829d42f
commit 402d9d67a4
3 changed files with 8 additions and 6 deletions

View File

@@ -50,8 +50,8 @@ Typenames :: string.[
"half" ,
"float" ,
"double" ,
"texture2D",
"sampler" ,
"Texture2D",
"Sampler" ,
];
Type_Variable :: struct {
@@ -902,9 +902,9 @@ declare_struct :: (checker : *Semantic_Checker, node : *AST_Node, name : string)
if child.kind == .FieldList {
for field : child.children {
type_var := check_node(checker, field);
h2tv(checker, type_var).scope = scope_handle;
if type_var > 0 {
h2tv(checker, type_var).scope = scope_handle;
add_child(checker, handle, type_var);
}
}