summaryrefslogtreecommitdiffstats
path: root/chromium/third_party/glslang/src/Test/spv.300BuiltIns.vert
blob: 847448fb66a005c3967f87cee0b6f3863d9aedb4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#version 310 es

in mediump float ps;

invariant gl_Position;

void main()
{
    gl_Position = vec4(ps);
    gl_Position *= float(4 - gl_VertexIndex);

    gl_PointSize = ps; 
    gl_PointSize *= float(5 - gl_InstanceIndex);
}