blob: 3de50d7ee24028156e32b6ae64594b7b08dd9173 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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 (uint a, uint b) { return (a == b); }
layout(location = 0) flat in uint 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: OpEntryPoint
}
|