aboutsummaryrefslogtreecommitdiffstats
path: root/src/glsl/loop_analysis.h
diff options
context:
space:
mode:
authorPaul Berry <[email protected]>2013-08-02 18:12:23 -0700
committerPaul Berry <[email protected]>2013-10-08 12:44:19 -0700
commitc09adcb21bd2c3993f1e8a4997d718d9fee89e6d (patch)
treef2c04a76e46f90583c41fa20c296a7a15bbc2f68 /src/glsl/loop_analysis.h
parent378ff1dbac8c01f2524282b5caa81e4296ee296e (diff)
glsl/gs: add gl_in support to builtin_variables.cpp.
Previously, builtin_variables.cpp was written assuming that we supported ARB_geometry_shader4 style geometry shader inputs, meaning that each built-in varying input to a geometry was supplied via an array variable whose name ended in "In", e.g. gl_PositionIn or gl_PointSizeIn. However, in GLSL 1.50 style geometry shaders, things work differently--built-in inputs are supplied to geometry shaders via a built-in interface block called gl_in, which contains all the built-in inputs using their usual names (e.g. the gl_Position input is supplied to the geometry shader as gl_in[i].gl_Position). This patch adds the necessary logic to builtin_variables.cpp to create the gl_in interface block and populate it accordingly for geometry shader inputs. The old ARB_geometry_shader4 style varyings are removed, though they can easily be added back in the future if we decide to support ARB_geometry_shader4. Reviewed-by: Ian Romanick <[email protected]> Reviewed-by: Jordan Justen <[email protected]>
Diffstat (limited to 'src/glsl/loop_analysis.h')
0 files changed, 0 insertions, 0 deletions