Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/KhronosGroup/SPIRV-Cross.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLukas Hermanns <lukas.hermanns@epicgames.com>2019-10-21 23:39:53 +0300
committerLukas Hermanns <lukas.hermanns@epicgames.com>2019-10-21 23:39:53 +0300
commite1b161b54b2d166a0ee473197a62ccded92a758c (patch)
treeedda789d5c1d45995b952c3e95baef0813807551 /test_shaders.py
parent2482ff708c379da8845e88f1af929bb1b80b581b (diff)
Removed bounds checks in favor of SPIRV-Tools pass '--graphics-robust-access'
Diffstat (limited to 'test_shaders.py')
-rwxr-xr-xtest_shaders.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/test_shaders.py b/test_shaders.py
index a2ff1993..5b0881ca 100755
--- a/test_shaders.py
+++ b/test_shaders.py
@@ -174,7 +174,10 @@ def cross_compile_msl(shader, spirv, opt, iterations, paths):
subprocess.check_call([paths.glslang, '--amb' ,'--target-env', 'vulkan1.1', '-V', '-o', spirv_path, shader])
if opt:
- subprocess.check_call([paths.spirv_opt, '--skip-validation', '-O', '-o', spirv_path, spirv_path])
+ if '.graphics-robust-access.' in shader:
+ subprocess.check_call([paths.spirv_opt, '--skip-validation', '-O', '--graphics-robust-access', '-o', spirv_path, spirv_path])
+ else:
+ subprocess.check_call([paths.spirv_opt, '--skip-validation', '-O', '-o', spirv_path, spirv_path])
spirv_cross_path = paths.spirv_cross