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>
This commit is contained in:
Iago Toral Quiroga
2014-06-06 09:43:04 +02:00
parent 02fd80e160
commit 1e1f071d25
+10
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.