diff options
| author | Yong He <yonghe@outlook.com> | 2023-11-16 21:23:13 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-11-16 21:23:13 -0800 |
| commit | 240aa243527eabcf87c30aabf9749396de47b1b2 (patch) | |
| tree | 00fd10c993aba5a5efee8e3bb698914efc6afe5a /tests/glsl | |
| parent | 6732f571e301754f6edc799b871f5e443eb9a9b8 (diff) | |
GLSL/SPIRV Fixes. (#3337)
Diffstat (limited to 'tests/glsl')
| -rw-r--r-- | tests/glsl/flat-in-float.slang | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/tests/glsl/flat-in-float.slang b/tests/glsl/flat-in-float.slang new file mode 100644 index 000000000..895e3c058 --- /dev/null +++ b/tests/glsl/flat-in-float.slang @@ -0,0 +1,24 @@ +//TEST:SIMPLE(filecheck=CHECK): -target spirv -stage fragment -entry main -allow-glsl -emit-spirv-directly +//TEST:SIMPLE(filecheck=CHECK): -target spirv -stage fragment -entry main -allow-glsl + +#version 310 es +precision highp float; +precision highp int; + +layout(location = 0) out mediump vec4 dEQP_FragColor; + +bool isOk(float a, float b) { return (a == b); } + +layout(location = 0) flat in float out0; +layout(binding = 0, std140) uniform Reference +{ + uint out0; +} ref; + +void main() +{ + bool RES = isOk(out0, ref.out0); + dEQP_FragColor = vec4(RES, RES, RES, 1.0); + // CHECK: OpDecorate {{.*}} Flat +} + |
