From 698001b8a0c453270976132fac931cd879bc8291 Mon Sep 17 00:00:00 2001 From: Alejandro Saucedo Date: Tue, 14 Sep 2021 23:09:37 +0100 Subject: [PATCH] Updated python test to work in windows --- python/test/utils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/python/test/utils.py b/python/test/utils.py index 4a711ba1..bfa5dcdf 100644 --- a/python/test/utils.py +++ b/python/test/utils.py @@ -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()