Changed type var children to static array.

This commit is contained in:
2024-09-25 13:01:56 +02:00
parent 243d83663a
commit e365067354
3 changed files with 30 additions and 27 deletions

View File

@@ -92,6 +92,11 @@ emit_field :: (state : *Codegen_State, node : *AST_Node, indentation : int) {
indent(state, indentation);
print_to_builder(*state.builder, "% ", dx11_type_to_string(field));
print("% %", node.parent.kind, node.parent.parent.kind);
if node.parent.parent.kind == .Properties {
// append(*state.builder, "__PROPERTIES__");
}
print_to_builder(*state.builder, "%", node.name);
if field.type == .Sampler {
@@ -109,7 +114,7 @@ emit_field :: (state : *Codegen_State, node : *AST_Node, indentation : int) {
emit_node(state, child, 0);
}
for i :0..field.child_count - 1 {
for i :0..field.children.count - 1 {
child := h2tv(state.type_variables, field.children[i]);
emit_node(state, child.source_node, 0);
}