diff options
author | Ian Romanick <ian.d.romanick@intel.com> | 2013-08-16 23:30:43 -0700 |
---|---|---|
committer | Ian Romanick <ian.d.romanick@intel.com> | 2013-08-19 16:40:03 -0700 |
commit | 684316512c5570483365d36849250a008b6fcd84 (patch) | |
tree | 3eae640e67f8482d803443d8b20c7d6f4eeb369c /include/pci_ids/pci_id_driver_map.h | |
parent | 9f7f727345fb555b30cbc8ad03c9324c7644bdcf (diff) |
glsl: Add new overload of program_resource_visitor::visit_field method
The outer-most record is passed into the visit_field method for
the first field. In other words, in the following structure:
struct S1 {
vec4 v;
float f;
};
struct S {
S1 s1;
S1 s2;
};
uniform Ubo {
S s;
};
s.s1.v would get record_type = S (because s1.v is the first non-record
field in S), and s.s2.v would get record_type = S1. s.s1.f and s.s2.f
would get record_type = NULL becuase they aren't the first field of
anything.
This new overload isn't used yet, but the next patch will add several
uses.
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Paul Berry <stereotype441@gmail.com>
Cc: "9.2 9.1" mesa-stable@lists.freedesktop.org
(cherry picked from commit 5ac884fd9f213baed1de52eb7d17b86455c48a02)
Diffstat (limited to 'include/pci_ids/pci_id_driver_map.h')
0 files changed, 0 insertions, 0 deletions