Shaders: Implemented reading the gl_InstanceID and gl_VertexID variables in the vertex shader.
This commit is contained in:
parent
5a763e8a5a
commit
99f12b05fa
2 changed files with 11 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue