Updated python and cpp with working gslslangvalidator
This commit is contained in:
parent
71b08d9f58
commit
b7fd1b4d79
10 changed files with 32 additions and 20 deletions
7
python/test/utils.py
Normal file
7
python/test/utils.py
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
import os
|
||||
|
||||
|
||||
def compile_source(source):
|
||||
os.system("glslangValidator --stdin -S comp -V -o tmp_kp_shader.comp.spv << END\n" + source + "\nEND")
|
||||
return open("tmp_kp_shader.comp.spv", "rb").read()
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue