Skip to content

Commit

Permalink
Updated python test to work in windows
Browse files Browse the repository at this point in the history
  • Loading branch information
axsaucedo committed Sep 14, 2021
1 parent 6497379 commit 698001b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion python/test/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@


def compile_source(source):
os.system("glslangValidator --stdin -S comp -V -o tmp_kp_shader.comp.spv << END\n" + source + "\nEND")
open("tmp_kp_shader.comp", "w").write(source)
os.system("glslangValidator -V tmp_kp_shader.comp -o tmp_kp_shader.comp.spv")
return open("tmp_kp_shader.comp.spv", "rb").read()

0 comments on commit 698001b

Please sign in to comment.