diff options
author | Iago Toral Quiroga <[email protected]> | 2014-06-05 10:47:01 +0200 |
---|---|---|
committer | Iago Toral Quiroga <[email protected]> | 2014-06-30 08:08:49 +0200 |
commit | b908e85ed3f1c7601c2e56f85ff676b606af10b5 (patch) | |
tree | 3fa27e710c7da6565c8685479df2851a9f66aa84 /src/glsl/link_varyings.h | |
parent | 37d795317edd2086a4962416c627dfadfc497f78 (diff) |
glsl: Assign GLSL StreamIds to transform feedback outputs.
Inter-shader outputs must be on stream 0, which is the default.
Reviewed-by: Chris Forbes <[email protected]>
Diffstat (limited to 'src/glsl/link_varyings.h')
-rw-r--r-- | src/glsl/link_varyings.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/glsl/link_varyings.h b/src/glsl/link_varyings.h index 6fa26817677..a80ca8831cb 100644 --- a/src/glsl/link_varyings.h +++ b/src/glsl/link_varyings.h @@ -210,6 +210,13 @@ private: * data structure that was found. Otherwise NULL. */ const tfeedback_candidate *matched_candidate; + + /** + * StreamId assigned to this varying (defaults to 0). Can only be set to + * values other than 0 in geometry shaders that use the stream layout + * modifier. Accepted values must be in the range [0, MAX_VERTEX_STREAMS-1]. + */ + unsigned stream_id; }; |