diff options
author | Ian Romanick <[email protected]> | 2011-11-08 12:30:58 -0800 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2011-11-14 11:08:49 -0800 |
commit | 6ac895a664b25eb6252f33d5cfb0e9dd33190490 (patch) | |
tree | c94a0a9ce4894322ffe7d93dfd2506b5e5fe36b9 /src/mesa/main | |
parent | 812aa8839388042609f65ed00ae4fbfdb60a11d6 (diff) |
linker: Count the number of uniform components used by a shader during linking
Signed-off-by: Ian Romanick <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa/main')
-rw-r--r-- | src/mesa/main/mtypes.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mesa/main/mtypes.h b/src/mesa/main/mtypes.h index 47282c0aed5..8495a9c2e63 100644 --- a/src/mesa/main/mtypes.h +++ b/src/mesa/main/mtypes.h @@ -2161,6 +2161,13 @@ struct gl_shader unsigned num_samplers; /**< Number of samplers used by this shader. * This field is only set post-linking. */ + /** + * Number of uniform components used by this shader. + * + * This field is only set post-linking. + */ + unsigned num_uniform_components; + struct exec_list *ir; struct glsl_symbol_table *symbols; |