mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-28 13:00:42 +02:00
glsl: Add gl_ViewportIndex built-in variable
v2 (idr): Fix copy-and-paste bug... s/LAYER/VIEWPORT/ Signed-off-by: Courtney Goeltzenleuchter <courtney@LunarG.com> Signed-off-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
parent
5439964270
commit
c2eefb06aa
1 changed files with 2 additions and 0 deletions
|
|
@ -780,6 +780,8 @@ void
|
|||
builtin_variable_generator::generate_gs_special_vars()
|
||||
{
|
||||
add_output(VARYING_SLOT_LAYER, int_t, "gl_Layer");
|
||||
if (state->ARB_viewport_array_enable)
|
||||
add_output(VARYING_SLOT_VIEWPORT, int_t, "gl_ViewportIndex");
|
||||
|
||||
/* Although gl_PrimitiveID appears in tessellation control and tessellation
|
||||
* evaluation shaders, it has a different function there than it has in
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue