glsl: Add methods to retrive a varying's name and streamId.
authorIago Toral Quiroga <itoral@igalia.com>
Fri, 6 Jun 2014 07:43:04 +0000 (09:43 +0200)
committerIago Toral Quiroga <itoral@igalia.com>
Mon, 30 Jun 2014 06:08:49 +0000 (08:08 +0200)
Reviewed-by: Chris Forbes <chrisf@ijw.co.nz>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/glsl/link_varyings.h

index a80ca8831cbc6d90405b992f4f3f8ac03db2b2be..afc16a8baa7123bfe7ad9a09e4d67f3807ea73ed 100644 (file)
@@ -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.