diff options
author | Ian Romanick <[email protected]> | 2013-01-21 22:18:16 -0500 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2013-01-25 09:07:34 -0500 |
commit | 23b7ce3a824013c8b4d7340294cb59b0b4cb8f87 (patch) | |
tree | 8856b0f90c68618c62ad7dc4735e618bfa5dd805 /src/glsl/opt_structure_splitting.cpp | |
parent | 3b09603dda7108f7f7d58c903b15510262f845c0 (diff) |
glsl: Add a predicate to determine whether a variable is an interface block
For the first declaration below, there will be an ir_variable named
"instance" whose type and whose instance_type will be the same
glsl_type. For the second declaration, there will be an ir_variable
named "f" whose type is float and whose instance_type is B2.
"instance" is an interface instance variable, but "f" is not.
uniform B1 {
float f;
} instance;
uniform B2 {
float f;
};
v2: Copy the comment message documentation into the code. Suggested by
Paul Berry.
Signed-off-by: Ian Romanick <[email protected]>
Reviewed-by: Carl Worth <[email protected]>
Reviewed-by: Paul Berry <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/glsl/opt_structure_splitting.cpp')
0 files changed, 0 insertions, 0 deletions