From: Iago Toral Quiroga Date: Fri, 6 Jun 2014 07:43:04 +0000 (+0200) Subject: glsl: Add methods to retrive a varying's name and streamId. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1e1f071d25d67b7e82ac2248dbda419f992b10d7;p=mesa.git glsl: Add methods to retrive a varying's name and streamId. Reviewed-by: Chris Forbes Reviewed-by: Ian Romanick --- diff --git a/src/glsl/link_varyings.h b/src/glsl/link_varyings.h index a80ca8831cb..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.