Changed type var children to static array.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user