Merge pull request #489 from Subv/vertexid

Shaders: Implemented reading the gl_InstanceID and gl_VertexID variables in the vertex shader.
This commit is contained in:
bunnei 2018-05-30 14:10:48 -04:00 committed by GitHub
commit 15086a22be
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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 {