[Mesa-dev] [PATCH 3/7] mesa: update texture object for ARB_texture_view
Courtney Goeltzenleuchter
courtney at lunarg.com
Tue Nov 5 14:59:45 PST 2013
Add state needed by glTextureView to the gl_texture_object.
---
src/mesa/main/mtypes.h | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/src/mesa/main/mtypes.h b/src/mesa/main/mtypes.h
index a35e9d9..2c5343c 100644
--- a/src/mesa/main/mtypes.h
+++ b/src/mesa/main/mtypes.h
@@ -1192,6 +1192,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];
--
1.8.1.2
More information about the mesa-dev
mailing list