mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 00:00:11 +01:00
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 <robdclark@gmail.com>
This commit is contained in:
parent
581c8016f8
commit
22836dbefa
2 changed files with 8 additions and 0 deletions
|
|
@ -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),
|
||||
|
|
|
|||
|
|
@ -378,6 +378,13 @@ typedef enum
|
|||
*/
|
||||
SYSTEM_VALUE_INSTANCE_ID,
|
||||
|
||||
/**
|
||||
* Vulkan InstanceIndex.
|
||||
*
|
||||
* InstanceIndex = gl_InstanceID + gl_BaseInstance
|
||||
*/
|
||||
SYSTEM_VALUE_INSTANCE_INDEX,
|
||||
|
||||
/**
|
||||
* DirectX-style vertex ID.
|
||||
*
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue