From 0fa74e848fd11c71bb70ea0a69650944e4f07571 Mon Sep 17 00:00:00 2001 From: Paul Berry Date: Mon, 6 Jan 2014 09:09:31 -0800 Subject: glsl/cs: Handle compute shader local_size_{x,y,z} declaration. Reviewed-by: Jordan Justen --- src/mesa/main/mtypes.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/mesa') diff --git a/src/mesa/main/mtypes.h b/src/mesa/main/mtypes.h index bd22d5003fd..36d98eeef87 100644 --- a/src/mesa/main/mtypes.h +++ b/src/mesa/main/mtypes.h @@ -2451,6 +2451,17 @@ struct gl_shader * ImageAccess arrays above. */ GLuint NumImages; + + /** + * Compute shader state from ARB_compute_shader layout qualifiers. + */ + struct { + /** + * Size specified using local_size_{x,y,z}, or all 0's to indicate that + * it's not set in this shader. + */ + unsigned LocalSize[3]; + } Comp; }; -- cgit v1.2.3