diff options
author | Hans-Kristian Arntzen <post@arntzen-software.no> | 2022-07-04 13:55:00 +0200 |
---|---|---|
committer | Hans-Kristian Arntzen <post@arntzen-software.no> | 2022-07-04 13:55:00 +0200 |
commit | 963fdfdf68647680c6c2bf119ad98ea05d3d8235 (patch) | |
tree | b915cff2bfc89990e7b64301bd1a8f60eedf0c67 /reference/shaders-no-opt | |
parent | f46745095d70ebda0887e62a7ee8545d11dd6bbc (diff) | |
download | SPIRV-Cross-963fdfdf68647680c6c2bf119ad98ea05d3d8235.tar.gz SPIRV-Cross-963fdfdf68647680c6c2bf119ad98ea05d3d8235.tar.bz2 SPIRV-Cross-963fdfdf68647680c6c2bf119ad98ea05d3d8235.zip |
Handle PHI in collapsed switch constructs.
Collapsed switch constructs only branch directly to the merge block.
Diffstat (limited to 'reference/shaders-no-opt')
-rw-r--r-- | reference/shaders-no-opt/asm/frag/collapsed-switch-phi-flush.asm.frag | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/reference/shaders-no-opt/asm/frag/collapsed-switch-phi-flush.asm.frag b/reference/shaders-no-opt/asm/frag/collapsed-switch-phi-flush.asm.frag new file mode 100644 index 00000000..a6f3e694 --- /dev/null +++ b/reference/shaders-no-opt/asm/frag/collapsed-switch-phi-flush.asm.frag @@ -0,0 +1,11 @@ +#version 450 + +layout(location = 0) out vec4 FragColor; + +void main() +{ + vec4 _17; + _17 = vec4(1.0); + FragColor = _17; +} + |