mesa: update texture object for ARB_texture_view
authorCourtney Goeltzenleuchter <courtney@LunarG.com>
Mon, 4 Nov 2013 20:22:30 +0000 (13:22 -0700)
committerBrian Paul <brianp@vmware.com>
Fri, 13 Dec 2013 19:31:53 +0000 (12:31 -0700)
Add state needed by glTextureView to the gl_texture_object.

Signed-off-by: Courtney Goeltzenleuchter <courtney@LunarG.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
src/mesa/main/mtypes.h

index 72b041317dc1720fefeeada9f7f82d5e25284712..937625461c673e54d27d47cf7761e6ca0a8f7006 100644 (file)
@@ -1193,6 +1193,11 @@ struct gl_texture_object
                                     pressure? */
    GLboolean Immutable;        /**< GL_ARB_texture_storage */
 
+   GLuint MinLevel;            /**< GL_ARB_texture_view */
+   GLuint MinLayer;            /**< GL_ARB_texture_view */
+   GLuint NumLevels;           /**< GL_ARB_texture_view */
+   GLuint NumLayers;           /**< GL_ARB_texture_view */
+
    /** Actual texture images, indexed by [cube face] and [mipmap level] */
    struct gl_texture_image *Image[MAX_FACES][MAX_TEXTURE_LEVELS];