diff options
author | Lukas Hermanns <lukas.hermanns@epicgames.com> | 2019-10-21 23:39:53 +0300 |
---|---|---|
committer | Lukas Hermanns <lukas.hermanns@epicgames.com> | 2019-10-21 23:39:53 +0300 |
commit | e1b161b54b2d166a0ee473197a62ccded92a758c (patch) | |
tree | edda789d5c1d45995b952c3e95baef0813807551 /test_shaders.py | |
parent | 2482ff708c379da8845e88f1af929bb1b80b581b (diff) |
Removed bounds checks in favor of SPIRV-Tools pass '--graphics-robust-access'
Diffstat (limited to 'test_shaders.py')
-rwxr-xr-x | test_shaders.py | 5 |
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 |