summaryrefslogtreecommitdiffstats
path: root/src/compiler/shader_enums.c
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2016-03-25 10:50:11 -0700
committerJason Ekstrand <[email protected]>2016-04-11 13:52:51 -0700
commit22836dbefa8b57fd788adf2693d7aab73c4de16a (patch)
tree25608fcf229a15e93c35deb31acb1eb90c84500b /src/compiler/shader_enums.c
parent581c8016f846643ed9e836604211f4a46cef57e5 (diff)
glsl/shader_enums: Add an enum for Vulkan InstanceIndex
In Vulkan, you have InstanceIndex which begins at the base instance value rather than the zero-based InstanceID of GL. Reviewed-by: Rob Clark <[email protected]>
Diffstat (limited to 'src/compiler/shader_enums.c')
-rw-r--r--src/compiler/shader_enums.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/compiler/shader_enums.c b/src/compiler/shader_enums.c
index 942d152b129..003ad3b8ab6 100644
--- a/src/compiler/shader_enums.c
+++ b/src/compiler/shader_enums.c
@@ -201,6 +201,7 @@ gl_system_value_name(gl_system_value sysval)
static const char *names[] = {
ENUM(SYSTEM_VALUE_VERTEX_ID),
ENUM(SYSTEM_VALUE_INSTANCE_ID),
+ ENUM(SYSTEM_VALUE_INSTANCE_INDEX),
ENUM(SYSTEM_VALUE_VERTEX_ID_ZERO_BASE),
ENUM(SYSTEM_VALUE_BASE_VERTEX),
ENUM(SYSTEM_VALUE_INVOCATION_ID),