X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=src%2Fglsl%2Flink_varyings.h;h=afc16a8baa7123bfe7ad9a09e4d67f3807ea73ed;hb=c5be9c126d6ca9380cd381a5eb22554e4bb71a64;hp=6fa26817677c2b6206bf2eec5a318793ea5ed9f5;hpb=42305fb50256c12b8e7a516115e72ae7089ccd1b;p=mesa.git diff --git a/src/glsl/link_varyings.h b/src/glsl/link_varyings.h index 6fa26817677..afc16a8baa7 100644 --- a/src/glsl/link_varyings.h +++ b/src/glsl/link_varyings.h @@ -112,6 +112,16 @@ public: return !this->next_buffer_separator && !this->skip_components; } + const char *name() const + { + return this->orig_name; + } + + unsigned get_stream_id() const + { + return this->stream_id; + } + /** * The total number of varying components taken up by this variable. Only * valid if assign_location() has been called. @@ -210,6 +220,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; };