glsl: copy explicit offset to uniform storage

Reviewed-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
This commit is contained in:
Timothy Arceri
2016-01-08 21:06:41 +11:00
parent e12a49ac12
commit 96527c3cf2
3 changed files with 20 additions and 0 deletions

View File

@@ -97,6 +97,11 @@ private:
this->offset, type->std140_base_alignment(row_major));
}
virtual void set_buffer_offset(unsigned offset)
{
this->offset = offset;
}
virtual void visit_field(const glsl_type *type, const char *name,
bool row_major, const glsl_type *,
const unsigned packing,