diff options
author | Ian Romanick <[email protected]> | 2013-01-22 00:59:56 -0500 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2013-01-25 09:07:35 -0500 |
commit | 0ab7399822b480f6e07cc566a2e50fabedc8258d (patch) | |
tree | 7d108e181a656a42bfe1b66edd74505c98ab525e /src/glsl/linker.h | |
parent | 681df909e32180774c8c64efc8e8dd03fdf9c668 (diff) |
glsl: Add link_uniform_blocks to calculate all UBO data at link-time
Calculate all of the block member offsets, the IndexNames, and
everything else to do with every UBO.
Signed-off-by: Ian Romanick <[email protected]>
Reviewed-by: Jordan Justen <[email protected]>
Diffstat (limited to 'src/glsl/linker.h')
-rw-r--r-- | src/glsl/linker.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/glsl/linker.h b/src/glsl/linker.h index 5818f7ead99..14eb9c1cdc5 100644 --- a/src/glsl/linker.h +++ b/src/glsl/linker.h @@ -53,6 +53,13 @@ extern bool link_uniform_blocks_are_compatible(const gl_uniform_block *a, const gl_uniform_block *b); +extern int +link_uniform_blocks(void *mem_ctx, + struct gl_shader_program *prog, + struct gl_shader **shader_list, + unsigned num_shaders, + struct gl_uniform_block **blocks_ret); + /** * Class for processing all of the leaf fields of an uniform * |