summaryrefslogtreecommitdiffstats
path: root/third_party/rust/spirv-cross-internal/tests/shaders/initialization.vert
blob: cf8027a3b25e3506cdd608bd8969e82d2966d388 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#version 310 es

layout(location = 0) in float rand;

void main()
{
    vec4 pos;

    if (rand > 0.5) {
        pos = vec4(1.0);
    }

    gl_Position = pos;
}