Browse Source

glsl: Add methods to retrive a varying's name and streamId.

Reviewed-by: Chris Forbes <chrisf@ijw.co.nz>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
tags/10.3-branchpoint
Iago Toral Quiroga 11 years ago
parent
commit
1e1f071d25
1 changed files with 10 additions and 0 deletions
  1. 10
    0
      src/glsl/link_varyings.h

+ 10
- 0
src/glsl/link_varyings.h View 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.

Loading…
Cancel
Save