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-03-19 16:20:37 +0300
committerHans-Kristian Arntzen <post@arntzen-software.no>2020-03-19 16:53:39 +0300
commit04e877df128ef16b77bb447efe24ed4a63268e91 (patch)
tree52926f2ae92760dff130cfaf023a480764d4a992 /test_shaders.py
parentc2655ab291d00d3d3b2065d832b94b436b0a36c4 (diff)
GLSL: Implement GL_EXT_shader_framebuffer_fetch.
Diffstat (limited to 'test_shaders.py')
-rwxr-xr-xtest_shaders.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/test_shaders.py b/test_shaders.py
index c72c7665..12018288 100755
--- a/test_shaders.py
+++ b/test_shaders.py
@@ -440,13 +440,19 @@ def cross_compile(shader, vulkan, spirv, invalid_spirv, eliminate, is_legacy, fl
extra_args += ['--vulkan-glsl-disable-ext-samplerless-texture-functions']
if '.no-qualifier-deduction.' in shader:
extra_args += ['--disable-storage-image-qualifier-deduction']
+ if '.framebuffer-fetch.' in shader:
+ extra_args += ['--glsl-remap-ext-framebuffer-fetch', '0', '0']
+ extra_args += ['--glsl-remap-ext-framebuffer-fetch', '1', '1']
+ extra_args += ['--glsl-remap-ext-framebuffer-fetch', '2', '2']
+ extra_args += ['--glsl-remap-ext-framebuffer-fetch', '3', '3']
spirv_cross_path = paths.spirv_cross
# A shader might not be possible to make valid GLSL from, skip validation for this case.
- if not ('nocompat' in glsl_path):
+ if (not ('nocompat' in glsl_path)) or (not vulkan):
subprocess.check_call([spirv_cross_path, '--entry', 'main', '--output', glsl_path, spirv_path] + extra_args)
- validate_shader(glsl_path, False, paths)
+ if not 'nocompat' in glsl_path:
+ validate_shader(glsl_path, False, paths)
else:
remove_file(glsl_path)
glsl_path = None