diff options
| author | bunnei <bunneidev@gmail.com> | 2018-05-30 14:10:48 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-05-30 14:10:48 -0400 |
| commit | 15086a22be5f8b63c2ab62b17da6201a72af5daa (patch) | |
| tree | aa5712fc1c25ee747b7d1e3b999b2302b2a2ed78 /src/video_core/engines/shader_bytecode.h | |
| parent | 94fecef137eb8452cfb82caa38a9593eab3d46ea (diff) | |
| parent | 99f12b05fa19e46d2dd482c6bde954046f5fd5bd (diff) | |
Merge pull request #489 from Subv/vertexid
Shaders: Implemented reading the gl_InstanceID and gl_VertexID variables in the vertex shader.
Diffstat (limited to 'src/video_core/engines/shader_bytecode.h')
| -rw-r--r-- | src/video_core/engines/shader_bytecode.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/video_core/engines/shader_bytecode.h b/src/video_core/engines/shader_bytecode.h index 198a470c0..f32a17057 100644 --- a/src/video_core/engines/shader_bytecode.h +++ b/src/video_core/engines/shader_bytecode.h @@ -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 { |
