Implement cull distances for GLSL 4.5 (but not as an extension yet, just a 4.5 feature).

git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@27714 e7fa87d3-cd2b-0410-9028-fcbf551c1848
This commit is contained in:
John Kessenich 2014-08-13 06:37:59 +00:00
parent 13fd6c9dd7
commit 699684180f
20 changed files with 414 additions and 3 deletions

View file

@ -0,0 +1,72 @@
450.geom
Warning, version 450 is not yet complete; most version-specific features are present, but some are missing.
Shader version: 450
invocations = 0
max_vertices = 0
input primitive = none
output primitive = none
0:? Sequence
0:11 Function Definition: main( (void)
0:11 Function Parameters:
0:13 Sequence
0:13 move second child to first child (float)
0:13 direct index (layout(stream=0 ) float)
0:13 gl_CullDistance: direct index for structure (layout(stream=0 ) out implicitly-sized array of float)
0:13 'anon@0' (layout(stream=0 ) out block{layout(stream=0 ) out implicitly-sized array of float gl_CullDistance})
0:13 Constant:
0:13 3 (const uint)
0:13 Constant:
0:13 2 (const int)
0:13 direct index (float)
0:13 gl_CullDistance: direct index for structure (in implicitly-sized array of float)
0:13 direct index (block{in implicitly-sized array of float gl_CullDistance})
0:13 'gl_in' (in implicitly-sized array of block{in implicitly-sized array of float gl_CullDistance})
0:13 Constant:
0:13 1 (const int)
0:13 Constant:
0:13 0 (const int)
0:13 Constant:
0:13 2 (const int)
0:? Linker Objects
0:? 'gl_in' (in implicitly-sized array of block{in implicitly-sized array of float gl_CullDistance})
0:? 'anon@0' (layout(stream=0 ) out block{layout(stream=0 ) out implicitly-sized array of float gl_CullDistance})
Linked geometry stage:
ERROR: Linking geometry stage: At least one shader must specify an input layout primitive
ERROR: Linking geometry stage: At least one shader must specify an output layout primitive
ERROR: Linking geometry stage: At least one shader must specify a layout(max_vertices = value)
Shader version: 450
invocations = 0
max_vertices = 0
input primitive = none
output primitive = none
0:? Sequence
0:11 Function Definition: main( (void)
0:11 Function Parameters:
0:13 Sequence
0:13 move second child to first child (float)
0:13 direct index (layout(stream=0 ) float)
0:13 gl_CullDistance: direct index for structure (layout(stream=0 ) out 3-element array of float)
0:13 'anon@0' (layout(stream=0 ) out block{layout(stream=0 ) out 3-element array of float gl_CullDistance})
0:13 Constant:
0:13 3 (const uint)
0:13 Constant:
0:13 2 (const int)
0:13 direct index (float)
0:13 gl_CullDistance: direct index for structure (in 1-element array of float)
0:13 direct index (block{in 1-element array of float gl_CullDistance})
0:13 'gl_in' (in 2-element array of block{in 1-element array of float gl_CullDistance})
0:13 Constant:
0:13 1 (const int)
0:13 Constant:
0:13 0 (const int)
0:13 Constant:
0:13 2 (const int)
0:? Linker Objects
0:? 'gl_in' (in 2-element array of block{in 1-element array of float gl_CullDistance})
0:? 'anon@0' (layout(stream=0 ) out block{layout(stream=0 ) out 3-element array of float gl_CullDistance})