Change typenames. Bug in hlsl builtins
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user