SPV: Implement Vulkan version of GLSL (KHR_vulkan_glsl).

This commit is contained in:
John Kessenich 2016-02-15 20:58:50 -07:00
parent 019f08fcd8
commit 6c292d3ba7
200 changed files with 7841 additions and 5577 deletions

View file

@ -6,12 +6,9 @@ invariant gl_Position;
void main()
{
mediump int i = (4 * gl_VertexID - 10);
mediump int j = (4 * gl_VertexID - 10);
gl_Position = vec4(ps);
gl_Position *= float(i);
gl_Position *= float(4 - gl_VertexIndex);
gl_PointSize = ps;
gl_PointSize *= float(j);
gl_PointSize *= float(5 - gl_InstanceIndex);
}