mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-27 19:10:14 +01:00
mesa: Make gl_VertexID be a system value like gl_InstanceID.
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
This commit is contained in:
parent
44fc3c6c1c
commit
919c53e87a
2 changed files with 2 additions and 1 deletions
|
|
@ -98,7 +98,7 @@ static const builtin_variable builtin_120_fs_variables[] = {
|
|||
};
|
||||
|
||||
static const builtin_variable builtin_130_vs_variables[] = {
|
||||
{ ir_var_in, -1, "int", "gl_VertexID" },
|
||||
{ ir_var_system_value, SYSTEM_VALUE_VERTEX_ID, "int", "gl_VertexID" },
|
||||
};
|
||||
|
||||
static const builtin_variable builtin_110_deprecated_uniforms[] = {
|
||||
|
|
|
|||
|
|
@ -1798,6 +1798,7 @@ typedef enum
|
|||
typedef enum
|
||||
{
|
||||
SYSTEM_VALUE_FRONT_FACE, /**< Fragment shader only (not done yet) */
|
||||
SYSTEM_VALUE_VERTEX_ID, /**< Vertex shader only */
|
||||
SYSTEM_VALUE_INSTANCE_ID, /**< Vertex shader only */
|
||||
SYSTEM_VALUE_MAX /**< Number of values */
|
||||
} gl_system_value;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue