Skip to content

Commit

Permalink
fix: removed print ast statement
Browse files Browse the repository at this point in the history
  • Loading branch information
samthakur587 committed Aug 6, 2024
1 parent a1c9a61 commit 01f2afc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 0 additions & 1 deletion crosstl/src/backend/DirectX/DirectxCrossGLCodeGen.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ def __init__(self):
}

def generate(self, ast):
print(ast)
self.process_structs(ast)
code = "shader main {\n"

Expand Down
4 changes: 3 additions & 1 deletion crosstl/src/backend/Metal/MetalCrossGLCodeGen.py
Original file line number Diff line number Diff line change
Expand Up @@ -238,4 +238,6 @@ def generate_expression(self, expr, is_main=False):
return str(expr)

def map_type(self, metal_type):
return self.type_map.get(metal_type, metal_type)
if metal_type:
return self.type_map.get(metal_type)
return metal_type

0 comments on commit 01f2afc

Please sign in to comment.