Neil Roberts
b96e6900f5
cogl-pipeline-layer: Use CoglTextureType instead of GL target enum
...
Instead of storing the GLenum for the target of the last used texture
for a layer it now stores the CoglTextureType instead. The state name
has been renamed to 'texture type' instead of 'texture target'.
Previously the default pipeline layer would store 0 here to represent
that there is no texture. This has been changed to store
COGL_TEXTURE_TYPE_2D instead which means that all pipeline layers
always have a valid value for the texture type. Any places that were
previously fetching the texture from a layer to determine the target
(for example when generating shaders or when enabling a particular
texture target) now use the texture type instead. This means they will
work even for layers that don't have a texture.
This also changes it so that when binding a fallback texture instead
of always using a 2D texture it will now use the default texture
corresponding to the texture type of the layer. That way when the
generated shader tries to do a texture lookup for that type of texture
it will get a valid texture object. To make this work the patch adds a
default texture for 3D textures to the context and also makes the
default rectangle texture actually be a rectangle texture instead of
using a 2D texture.
Reviewed-by: Robert Bragg <robert@linux.intel.com>
2012-02-13 17:09:34 +00:00
..
2011-11-01 12:03:02 +00:00
2012-02-13 12:22:18 +00:00
2012-02-13 17:02:46 +00:00
2011-12-06 18:51:56 +00:00
2011-12-06 18:51:56 +00:00
2011-09-09 15:06:31 +01:00
2012-02-09 14:28:02 +00:00
2011-09-09 15:06:31 +01:00
2012-01-27 17:18:32 +00:00
2012-02-13 17:02:46 +00:00
2012-02-09 14:28:02 +00:00
2012-02-09 14:28:02 +00:00
2012-02-09 13:09:15 +00:00
2012-02-09 13:09:15 +00:00
2012-02-09 13:09:15 +00:00
2011-11-01 12:03:02 +00:00
2011-07-25 22:45:24 +01:00
2011-11-01 12:03:02 +00:00
2012-01-05 21:00:17 +00:00
2011-11-16 16:32:11 +00:00
2011-12-07 12:08:15 +00:00
2011-09-05 17:54:46 +01:00
2012-02-07 15:13:11 +00:00
2011-11-16 16:32:11 +00:00
2011-11-16 16:32:11 +00:00
2012-02-09 14:28:02 +00:00
2012-02-09 14:28:02 +00:00
2012-01-05 21:00:17 +00:00
2012-02-09 13:09:15 +00:00
2011-12-06 18:51:57 +00:00
2011-12-06 18:51:57 +00:00
2011-12-06 18:51:57 +00:00
2011-11-01 15:55:53 +00:00
2011-11-01 15:55:53 +00:00
2011-11-01 15:55:53 +00:00
2011-11-01 12:03:02 +00:00
2011-08-12 15:28:42 +01:00
2011-08-12 15:28:42 +01:00
2012-02-13 17:09:34 +00:00
2012-02-13 17:09:34 +00:00
2012-01-05 21:00:17 +00:00
2011-10-14 13:56:51 +01:00
2012-02-09 13:10:14 +00:00
2011-11-25 13:14:10 +00:00
2012-02-13 12:22:17 +00:00
2012-02-13 12:22:17 +00:00
2011-11-01 12:03:02 +00:00
2011-11-01 12:03:01 +00:00
2011-07-29 11:50:15 +01:00
2011-11-01 12:03:02 +00:00
2012-02-09 13:09:15 +00:00
2011-11-01 12:03:02 +00:00
2012-01-04 19:27:20 +00:00
2011-07-27 16:10:02 +01:00
2012-01-05 20:13:41 +00:00
2011-11-22 16:07:21 +00:00
2012-02-09 13:09:15 +00:00
2012-02-09 14:28:02 +00:00
2012-02-09 13:09:15 +00:00
2012-01-05 13:40:59 +00:00
2012-01-05 13:40:59 +00:00
2012-02-08 18:58:06 +00:00
2011-12-12 16:13:57 +00:00
2012-02-09 14:28:02 +00:00
2012-02-09 14:28:02 +00:00
2012-02-09 14:28:02 +00:00
2012-02-09 14:28:02 +00:00
2011-11-16 16:32:10 +00:00
2012-01-27 17:23:03 +00:00
2012-02-09 14:28:02 +00:00
2012-02-08 17:00:25 +00:00
2011-12-06 19:02:06 +00:00
2011-12-06 19:02:06 +00:00
2012-01-16 18:27:19 +00:00
2012-01-16 18:27:20 +00:00
2011-11-01 12:03:03 +00:00
2011-11-01 12:03:03 +00:00
2011-09-21 17:03:10 +01:00
2011-11-01 12:03:02 +00:00
2012-01-27 17:22:57 +00:00
2012-01-27 17:22:57 +00:00
2011-09-21 15:27:03 +01:00
2012-02-08 17:00:25 +00:00
2011-11-01 12:03:02 +00:00
2012-01-16 18:27:20 +00:00
2012-01-16 18:27:20 +00:00
2012-02-08 17:00:25 +00:00
2012-01-16 18:27:20 +00:00
2011-11-01 12:02:59 +00:00
2011-11-01 12:03:02 +00:00
2011-12-06 19:02:05 +00:00
2011-09-21 17:03:10 +01:00
2012-02-13 17:09:34 +00:00
2012-02-13 17:09:34 +00:00
2012-02-13 17:09:34 +00:00
2012-02-13 17:09:34 +00:00
2012-02-13 17:09:34 +00:00
2012-02-13 17:09:34 +00:00
2012-02-07 15:25:35 +00:00
2012-02-13 17:09:34 +00:00
2012-02-13 17:09:34 +00:00
2012-02-07 15:25:35 +00:00
2011-12-06 19:02:06 +00:00
2011-12-06 19:02:06 +00:00
2011-12-06 18:51:57 +00:00
2011-12-06 19:02:06 +00:00
2011-12-06 19:02:06 +00:00
2011-12-06 19:02:06 +00:00
2011-12-06 19:02:06 +00:00
2012-01-04 19:27:20 +00:00
2012-01-16 18:27:20 +00:00
2011-12-06 19:02:06 +00:00
2011-12-06 19:02:06 +00:00
2012-02-13 17:09:34 +00:00
2012-01-16 18:27:20 +00:00
2012-01-27 17:18:32 +00:00
2012-02-09 14:28:02 +00:00
2012-02-09 14:28:02 +00:00
2012-01-05 13:40:10 +00:00
2012-01-24 14:04:26 +00:00
2011-11-01 12:02:59 +00:00
2012-02-09 14:28:02 +00:00
2012-02-09 14:28:02 +00:00
2012-02-09 13:09:15 +00:00
2012-02-09 14:28:02 +00:00
2011-09-19 16:40:06 +01:00
2012-01-16 23:27:36 +00:00
2011-11-16 16:32:10 +00:00
2012-01-16 18:27:19 +00:00
2012-01-16 18:27:19 +00:00
2011-11-01 12:03:02 +00:00
2012-01-16 18:27:19 +00:00
2012-02-08 17:00:25 +00:00
2012-02-08 17:00:25 +00:00
2011-11-02 13:50:28 +00:00
2011-12-07 14:52:48 +00:00
2011-12-06 19:02:06 +00:00
2011-12-06 19:02:06 +00:00
2012-01-16 18:27:20 +00:00
2011-11-01 12:03:03 +00:00
2011-11-01 12:03:02 +00:00
2012-01-27 17:18:32 +00:00
2012-02-13 17:02:46 +00:00
2012-01-05 20:57:52 +00:00
2012-01-27 17:18:32 +00:00
2012-01-27 17:18:32 +00:00
2012-02-13 17:02:46 +00:00
2012-01-05 21:00:17 +00:00
2012-02-13 17:02:46 +00:00
2011-11-01 12:03:01 +00:00
2012-01-27 17:18:32 +00:00
2012-02-13 17:02:46 +00:00
2012-02-13 17:02:46 +00:00
2012-01-27 17:18:32 +00:00
2012-02-13 17:02:46 +00:00
2011-11-01 12:03:02 +00:00
2012-02-13 17:02:46 +00:00
2012-02-13 17:02:46 +00:00
2011-11-14 18:40:27 +00:00
2011-11-16 16:32:11 +00:00
2011-11-25 13:14:10 +00:00
2012-01-16 18:27:19 +00:00
2012-01-16 18:27:19 +00:00
2012-02-09 14:28:02 +00:00
2011-12-07 15:53:05 +00:00
2012-01-05 13:40:24 +00:00
2012-01-05 13:40:24 +00:00
2012-01-05 13:40:24 +00:00
2011-12-12 16:13:57 +00:00
2011-11-01 15:55:53 +00:00
2011-12-06 18:51:57 +00:00
2012-02-08 17:00:25 +00:00
2011-12-15 20:31:30 +08:00
2012-02-13 12:22:18 +00:00
2012-02-13 12:22:19 +00:00
2011-08-12 15:28:42 +01:00