[Mesa-dev,v2,06/23] glsl: Add methods to retrive a varying's name and streamId.

Submitted by Iago Toral Quiroga on June 18, 2014, 9:51 a.m.

Details

Message ID 1403085110-31168-7-git-send-email-itoral@igalia.com
State Superseded
Headers show

Not browsing as part of any series.

Commit Message

Iago Toral Quiroga June 18, 2014, 9:51 a.m.
---
 src/glsl/link_varyings.h | 10 ++++++++++
 1 file changed, 10 insertions(+)

Patch hide | download patch | download mbox

diff --git a/src/glsl/link_varyings.h b/src/glsl/link_varyings.h
index 4e485c3..167363e 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.

Comments

Patches 6, 7, 8, 9, and 10 are

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>

On 06/18/2014 02:51 AM, Iago Toral Quiroga wrote:
> ---
>  src/glsl/link_varyings.h | 10 ++++++++++
>  1 file changed, 10 insertions(+)
> 
> diff --git a/src/glsl/link_varyings.h b/src/glsl/link_varyings.h
> index 4e485c3..167363e 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.
>