Reviewed-by: Dave Airlie <airlied@redhat.com>
};
}
+/**
+ * Test if a target is a cube map.
+ *
+ * \param target texture target.
+ *
+ * \return true if the target is a cube map, false otherwise.
+ */
+bool
+_mesa_is_cube_map_texture(GLenum target)
+{
+ switch(target) {
+ case GL_TEXTURE_CUBE_MAP:
+ case GL_TEXTURE_CUBE_MAP_ARRAY:
+ return true;
+ default:
+ return false;
+ }
+}
/**
* Return the proxy target which corresponds to the given texture target
struct gl_buffer_object *bufObj,
GLintptr offset, GLsizeiptr size,
const char *caller);
+
+bool
+_mesa_is_cube_map_texture(GLenum target);
+
/*@}*/