Neil Roberts
4cfe90bde2
cogl: Remove the generated array size for cogl_tex_coord_in
...
Under GLES2 we were defining the cogl_tex_coord_in varying as an array
with a size determined by the number of texture coordinate arrays
enabled whenever the program is used. This meant that we may have to
regenerate the shader with a different size if the shader is used with
more texture coord arrays later. However in OpenGL the equivalent
builtin varying gl_TexCoord is simply defined as:
varying vec4 gl_TexCoord[]; /* <-- no size */
GLSL is documented that if you declare an array with no size then you
can only access it with a constant index and the size of the array
will be determined by the highest index used. If you want to access it
with a non-constant expression you need to redeclare the array
yourself with a size.
We can replicate the same behaviour in our Cogl shaders by instead
declaring the cogl_tex_coord_in with no size. That way we don't have
to pass around the number of tex coord attributes enabled when we
flush a material. It also means that CoglShader can go back to
directly uploading the source string to GL when cogl_shader_source is
called so that we don't have to keep a copy of it around.
If the user wants to access cogl_tex_coord_in with a non-constant
index then they can simply redeclare the array themself. Hopefully
developers will expect to have to do this if they are accustomed to
the gl_TexCoord array.
2010-12-02 12:27:29 +00:00
..
2010-10-25 13:18:25 +01:00
2010-12-02 12:27:29 +00:00
2010-11-30 16:22:49 +00:00
2010-11-30 14:50:13 +00:00
2010-10-21 12:22:17 +01:00
2010-11-24 15:09:47 +00:00
2010-10-21 12:22:17 +01:00
2010-11-30 14:40:37 +00:00
2010-11-01 15:21:04 +00:00
2010-11-24 16:19:21 +00:00
2010-05-26 14:09:24 +01:00
2010-05-20 11:19:51 +01:00
2010-10-25 23:44:53 +01:00
2010-10-21 13:13:00 +01:00
2010-11-29 10:54:33 +00:00
2010-10-21 13:13:00 +01:00
2010-11-24 16:51:59 +00:00
2010-11-25 18:18:51 +00:00
2010-11-24 16:51:59 +00:00
2010-10-18 11:26:45 +01:00
2010-09-13 15:45:55 +01:00
2010-10-18 11:26:45 +01:00
2010-10-18 11:26:44 +01:00
2010-07-31 10:56:09 +01:00
2010-10-18 11:26:45 +01:00
2010-09-10 11:18:53 +01:00
2010-10-21 12:22:17 +01:00
2010-06-07 14:22:26 +01:00
2010-10-21 13:13:00 +01:00
2010-10-21 12:22:17 +01:00
2010-10-21 12:22:17 +01:00
2010-11-18 15:21:16 +00:00
2010-11-18 15:21:16 +00:00
2010-11-18 15:21:16 +00:00
2010-11-18 15:21:16 +00:00
2010-11-18 15:21:16 +00:00
2010-11-18 15:21:16 +00:00
2010-11-18 15:21:16 +00:00
2010-11-18 15:21:16 +00:00
2010-11-18 15:21:16 +00:00
2010-11-18 15:21:16 +00:00
2010-11-18 15:21:16 +00:00
2010-11-18 15:21:16 +00:00
2010-11-18 15:21:16 +00:00
2010-11-18 15:21:16 +00:00
2010-06-01 12:08:18 +01:00
2010-10-18 11:26:45 +01:00
2009-10-14 11:31:29 +01:00
2010-10-21 12:22:17 +01:00
2010-09-17 12:17:50 +01:00
2010-10-25 00:39:13 +01:00
2010-11-17 12:47:46 +00:00
2010-06-03 14:10:55 +01:00
2010-10-08 13:29:49 +01:00
2010-03-25 09:41:54 +00:00
2010-10-18 11:26:45 +01:00
2010-03-02 11:12:32 +00:00
2010-11-08 16:01:19 +00:00
2010-11-08 16:01:19 +00:00
2010-10-18 11:26:45 +01:00
2010-11-11 23:18:20 +00:00
2010-08-26 16:39:39 +01:00
2010-11-23 12:50:29 +00:00
2010-11-11 13:14:23 +00:00
2010-11-29 12:51:52 +00:00
2010-11-18 18:23:49 +00:00
2010-11-17 12:47:46 +00:00
2010-06-03 14:10:55 +01:00
2010-11-18 15:21:16 +00:00
2010-09-17 12:17:50 +01:00
2010-10-18 11:26:45 +01:00
2010-09-30 14:58:23 +01:00
2010-10-19 01:42:19 +01:00
2010-10-18 11:26:45 +01:00
2010-11-18 18:23:49 +00:00
2009-07-21 09:22:38 +01:00
2010-11-17 12:47:46 +00:00
2010-06-03 14:10:55 +01:00
2010-11-30 14:40:37 +00:00
2010-10-21 12:22:17 +01:00
2010-03-02 11:12:32 +00:00
2010-11-18 15:21:16 +00:00
2010-09-07 10:40:49 +01:00
2010-09-29 15:12:57 +01:00
2010-11-18 18:23:49 +00:00
2009-05-29 12:40:23 +01:00
2010-10-21 12:22:17 +01:00
2010-09-13 15:45:55 +01:00
2010-10-21 12:22:17 +01:00
2010-02-15 19:03:37 +00:00
2010-06-07 22:40:34 +01:00
2009-10-14 11:31:29 +01:00
2010-09-08 17:04:21 +01:00
2010-10-18 11:26:45 +01:00
2009-10-14 11:31:30 +01:00
2010-11-17 16:19:10 +00:00
2010-11-06 20:11:16 +00:00
2010-09-29 15:12:57 +01:00
2010-03-01 12:56:10 +00:00
2010-11-30 14:40:38 +00:00
2010-11-30 14:40:37 +00:00
2010-10-25 00:31:36 +01:00
2010-05-24 15:06:14 +01:00
2010-12-02 09:53:00 +00:00
2010-09-10 17:54:52 +01:00
2010-12-02 09:53:00 +00:00
2010-10-18 11:26:45 +01:00
2009-12-13 01:23:54 +00:00
2010-08-10 17:12:06 +01:00
2009-12-02 11:36:25 +00:00
2010-09-08 16:41:47 +01:00
2010-11-19 12:55:55 +00:00
2010-11-06 20:11:16 +00:00
2010-11-07 21:35:40 +00:00
2010-11-17 16:19:10 +00:00
2009-07-10 11:38:42 +01:00
2010-10-18 11:26:44 +01:00
2010-05-19 16:10:05 +01:00
2009-05-05 20:18:28 +01:00
2010-09-08 16:41:47 +01:00
2009-05-20 16:06:09 +01:00
2010-11-29 10:55:52 +00:00
2010-11-18 18:23:49 +00:00
2010-10-21 12:22:17 +01:00
2010-06-10 18:40:29 +01:00
2010-10-21 13:13:00 +01:00
2010-11-23 12:50:29 +00:00
2010-11-07 21:35:40 +00:00
2010-10-25 16:09:40 +01:00
2010-10-21 12:22:17 +01:00
2009-10-06 10:43:41 +01:00
2010-11-06 20:11:16 +00:00
2010-09-14 12:43:16 +01:00
2010-09-14 12:43:16 +01:00
2010-10-21 12:22:17 +01:00
2010-09-08 16:41:47 +01:00
2010-10-19 01:42:19 +01:00
2010-10-19 01:42:19 +01:00
2010-11-18 15:21:16 +00:00
2010-10-18 11:26:44 +01:00
2010-09-29 15:57:28 +01:00
2010-11-14 23:06:53 +00:00
2010-06-21 15:55:36 +01:00
2010-11-29 10:59:16 +00:00
2010-06-03 14:34:41 +01:00
2010-06-16 17:14:57 +01:00
2009-05-12 14:53:44 +01:00
2010-09-03 12:14:50 +01:00
2010-11-18 18:23:49 +00:00
2010-11-15 16:00:49 +00:00
2010-11-15 16:00:49 +00:00
2010-10-21 13:13:00 +01:00
2010-10-21 11:30:19 +01:00
2010-05-19 16:10:05 +01:00
2010-11-08 16:45:15 +00:00
2010-11-24 15:09:47 +00:00
2010-09-08 16:41:47 +01:00
2010-11-25 18:18:51 +00:00
2010-11-18 15:21:16 +00:00
2010-10-25 17:21:20 +01:00
2010-10-18 11:26:45 +01:00
2010-10-08 12:11:39 +01:00
2010-09-23 15:17:58 +01:00
2010-11-29 11:51:33 +00:00
2010-02-03 14:38:13 +00:00
2010-11-18 18:23:49 +00:00
2010-11-18 18:23:49 +00:00
2010-11-18 15:18:19 +00:00
2010-11-18 15:18:19 +00:00
2010-11-17 16:19:10 +00:00
2010-11-17 16:19:10 +00:00
2010-11-17 16:19:10 +00:00
2010-11-08 15:52:17 +00:00
2010-11-18 18:23:49 +00:00
2010-11-18 15:21:16 +00:00
2009-10-16 15:25:37 +01:00
2010-09-29 15:13:00 +01:00
2010-02-06 10:49:33 +00:00
2010-03-02 11:12:32 +00:00
2010-11-15 16:00:49 +00:00
2010-09-29 14:40:15 +01:00
2010-11-30 14:40:38 +00:00