Updated python test to work in windows
This commit is contained in:
parent
6497379545
commit
698001b8a0
1 changed files with 2 additions and 1 deletions
|
|
@ -2,6 +2,7 @@ import os
|
|||
|
||||
|
||||
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()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue