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:
authorHans-Kristian Arntzen <post@arntzen-software.no>2020-07-28 16:15:24 +0300
committerHans-Kristian Arntzen <post@arntzen-software.no>2020-07-28 16:16:06 +0300
commit57c93d44ac75fec541fe7ad4becc2d52f6a97d86 (patch)
tree047f5b013d1e9990cce38da9226abb979663e7a8 /test_shaders.py
parentf5e9f4a1722ecd383aa5b1877c3ada544edd8b00 (diff)
GLSL: Add option to force flattening IO blocks.
It is not always desirable to use actual blocks. A prime example in the case where EXT_shader_io_blocks is not supported on the target implementation.
Diffstat (limited to 'test_shaders.py')
-rwxr-xr-xtest_shaders.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/test_shaders.py b/test_shaders.py
index ea208123..d647f5d7 100755
--- a/test_shaders.py
+++ b/test_shaders.py
@@ -501,6 +501,8 @@ def cross_compile(shader, vulkan, spirv, invalid_spirv, eliminate, is_legacy, fl
extra_args += ['--glsl-remap-ext-framebuffer-fetch', '3', '3']
if '.zero-initialize.' in shader:
extra_args += ['--force-zero-initialized-variables']
+ if '.force-flattened-io.' in shader:
+ extra_args += ['--glsl-force-flattened-io-blocks']
spirv_cross_path = paths.spirv_cross