diff options
author | Iago Toral Quiroga <[email protected]> | 2014-06-06 09:43:04 +0200 |
---|---|---|
committer | Iago Toral Quiroga <[email protected]> | 2014-06-30 08:08:49 +0200 |
commit | 1e1f071d25d67b7e82ac2248dbda419f992b10d7 (patch) | |
tree | eb0f99242e62adf6a82d22888bc90e216e0b2495 /src/glsl | |
parent | 02fd80e16018d44374063bae703352c464fdec2c (diff) |
glsl: Add methods to retrive a varying's name and streamId.
Reviewed-by: Chris Forbes <[email protected]>
Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/glsl')
-rw-r--r-- | src/glsl/link_varyings.h | 10 |
1 files changed, 10 insertions, 0 deletions
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. |