Shaders: Implemented reading the gl_InstanceID and gl_VertexID variables in the vertex shader.

This commit is contained in:
Subv 2018-05-30 10:58:03 -05:00
parent 5a763e8a5a
commit 99f12b05fa
2 changed files with 11 additions and 1 deletions

View file

@ -75,6 +75,10 @@ union Attribute {
enum class Index : u64 {
Position = 7,
Attribute_0 = 8,
// This attribute contains a tuple of (~, ~, InstanceId, VertexId) when inside a vertex
// shader, and a tuple of (TessCoord.x, TessCoord.y, TessCoord.z, ~) when inside a Tess Eval
// shader.
TessCoordInstanceIDVertexID = 47,
};
union {