Updated python and cpp with working gslslangvalidator

This commit is contained in:
Alejandro Saucedo 2021-07-21 18:16:29 +01:00
parent 71b08d9f58
commit b7fd1b4d79
10 changed files with 32 additions and 20 deletions

7
python/test/utils.py Normal file
View 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()