diff options
author | Hans-Kristian Arntzen <post@arntzen-software.no> | 2019-04-05 13:06:10 +0300 |
---|---|---|
committer | Hans-Kristian Arntzen <post@arntzen-software.no> | 2019-04-05 13:19:32 +0300 |
commit | 317144a59c5c05ed3430335f25ce8e654f1b786d (patch) | |
tree | 0b330980a78ac606b219d1e66c1164787d7eb05a /reference/opt/shaders/asm | |
parent | 8db9ae0e9cd0b0515c872c801a72b198dd757424 (diff) |
Detect invalid DoWhileLoop early.
We had a bug where error conditions in DoWhileLoop emit path would not
detect that statements were being emitted due to the masking behavior
which happens when force_recompile is true. Fix this.
Also, refactor force_recompile into member functions so we can properly
break on any situation where this is set, without having to rely on
watchpoints in debuggers.
Diffstat (limited to 'reference/opt/shaders/asm')
-rw-r--r-- | reference/opt/shaders/asm/frag/do-while-statement-fallback.asm.frag | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/reference/opt/shaders/asm/frag/do-while-statement-fallback.asm.frag b/reference/opt/shaders/asm/frag/do-while-statement-fallback.asm.frag new file mode 100644 index 00000000..35bec988 --- /dev/null +++ b/reference/opt/shaders/asm/frag/do-while-statement-fallback.asm.frag @@ -0,0 +1,9 @@ +#version 450 + +layout(location = 0) out float FragColor; + +void main() +{ + FragColor = 5.0; +} + |