Front-end: allow max size built-in arrays like gl_ClipDistance

Fixed off-by-one error with gl_MaxClipDistances and similar limits.
This commit is contained in:
Maciej Jesionowski
2016-06-27 12:44:15 +02:00
parent a4a4d5e22c
commit bbbcb5b2eb
6 changed files with 36 additions and 5 deletions

View File

@@ -0,0 +1,23 @@
maxClipDistances.vert
Shader version: 130
0:? Sequence
0:5 Function Definition: main( (global void)
0:5 Function Parameters:
0:? Linker Objects
0:? 'gl_ClipDistance' (smooth out 8-element array of float ClipDistance)
0:? 'gl_ClipDistance' (smooth out 8-element array of float ClipDistance)
0:? 'gl_VertexID' (gl_VertexId int VertexId)
Linked vertex stage:
Shader version: 130
0:? Sequence
0:5 Function Definition: main( (global void)
0:5 Function Parameters:
0:? Linker Objects
0:? 'gl_ClipDistance' (smooth out 8-element array of float ClipDistance)
0:? 'gl_ClipDistance' (smooth out 8-element array of float ClipDistance)
0:? 'gl_VertexID' (gl_VertexId int VertexId)