summaryrefslogtreecommitdiffstats
path: root/src/glsl/linker.h
diff options
context:
space:
mode:
authorIan Romanick <[email protected]>2013-01-22 00:59:56 -0500
committerIan Romanick <[email protected]>2013-01-25 09:07:35 -0500
commit0ab7399822b480f6e07cc566a2e50fabedc8258d (patch)
tree7d108e181a656a42bfe1b66edd74505c98ab525e /src/glsl/linker.h
parent681df909e32180774c8c64efc8e8dd03fdf9c668 (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.h7
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
*