Class EXTTextureStorage
The texture image specification commands in OpenGL allow each level to be separately specified with different sizes, formats, types and so on, and only imposes consistency checks at draw time. This adds overhead for implementations.
This extension provides a mechanism for specifying the entire structure of a texture in a single call, allowing certain consistency checks and memory allocations to be done up front. Once specified, the format and dimensions of the image array become immutable, to simplify completeness checks in the implementation.
When using this extension, it is no longer possible to supply texture data using TexImage*. Instead, data can be uploaded using TexSubImage*, or produced by other means (such as render-to-texture, mipmap generation, or rendering to a sibling EGLImage).
This extension has complicated interactions with other extensions. The goal of most of these interactions is to ensure that a texture is always mipmap complete (and cube complete for cubemap textures).
Requires GLES 2.0
.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Accepted by theinternalformat
parameter of TexStorage when implemented on OpenGL ES.static final int
Accepted by theinternalformat
parameter of TexStorage when implemented on OpenGL ES.static final int
Accepted by theinternalformat
parameter of TexStorage when implemented on OpenGL ES.static final int
Accepted by theinternalformat
parameter of TexStorage when implemented on OpenGL ES.static final int
Accepted by theinternalformat
parameter of TexStorage when implemented on OpenGL ES.static final int
Accepted by theinternalformat
parameter of TexStorage when implemented on OpenGL ES.static final int
Accepted by theinternalformat
parameter of TexStorage when implemented on OpenGL ES.static final int
Accepted by theinternalformat
parameter of TexStorage when implemented on OpenGL ES.static final int
Accepted by theinternalformat
parameter of TexStorage when implemented on OpenGL ES.static final int
Accepted by theinternalformat
parameter of TexStorage when implemented on OpenGL ES.static final int
Accepted by theinternalformat
parameter of TexStorage when implemented on OpenGL ES.static final int
Accepted by theinternalformat
parameter of TexStorage when implemented on OpenGL ES.static final int
Accepted by theinternalformat
parameter of TexStorage when implemented on OpenGL ES.static final int
Accepted by theinternalformat
parameter of TexStorage when implemented on OpenGL ES.static final int
Accepted by theinternalformat
parameter of TexStorage when implemented on OpenGL ES.static final int
Accepted by theinternalformat
parameter of TexStorage when implemented on OpenGL ES.static final int
Accepted by theinternalformat
parameter of TexStorage when implemented on OpenGL ES.static final int
Accepted by theinternalformat
parameter of TexStorage when implemented on OpenGL ES.static final int
Accepted by theinternalformat
parameter of TexStorage when implemented on OpenGL ES.static final int
Accepted by theinternalformat
parameter of TexStorage when implemented on OpenGL ES.static final int
Accepted by theinternalformat
parameter of TexStorage when implemented on OpenGL ES.static final int
Accepted by theinternalformat
parameter of TexStorage when implemented on OpenGL ES.static final int
Accepted by theinternalformat
parameter of TexStorage when implemented on OpenGL ES.static final int
Accepted by thevalue
parameter of GetTexParameter{if}v. -
Method Summary
Modifier and TypeMethodDescriptionstatic void
glTexStorage1DEXT
(int target, int levels, int internalformat, int width) static void
glTexStorage2DEXT
(int target, int levels, int internalformat, int width, int height) static void
glTexStorage3DEXT
(int target, int levels, int internalformat, int width, int height, int depth) static void
glTextureStorage1DEXT
(int texture, int target, int levels, int internalformat, int width) static void
glTextureStorage2DEXT
(int texture, int target, int levels, int internalformat, int width, int height) static void
glTextureStorage3DEXT
(int texture, int target, int levels, int internalformat, int width, int height, int depth)
-
Field Details
-
GL_TEXTURE_IMMUTABLE_FORMAT_EXT
public static final int GL_TEXTURE_IMMUTABLE_FORMAT_EXTAccepted by thevalue
parameter of GetTexParameter{if}v.- See Also:
-
GL_ALPHA8_EXT
public static final int GL_ALPHA8_EXTAccepted by theinternalformat
parameter of TexStorage when implemented on OpenGL ES.- See Also:
-
GL_LUMINANCE8_EXT
public static final int GL_LUMINANCE8_EXTAccepted by theinternalformat
parameter of TexStorage when implemented on OpenGL ES.- See Also:
-
GL_LUMINANCE8_ALPHA8_EXT
public static final int GL_LUMINANCE8_ALPHA8_EXTAccepted by theinternalformat
parameter of TexStorage when implemented on OpenGL ES.- See Also:
-
GL_RGBA32F_EXT
public static final int GL_RGBA32F_EXTAccepted by theinternalformat
parameter of TexStorage when implemented on OpenGL ES.- See Also:
-
GL_RGB32F_EXT
public static final int GL_RGB32F_EXTAccepted by theinternalformat
parameter of TexStorage when implemented on OpenGL ES.- See Also:
-
GL_ALPHA32F_EXT
public static final int GL_ALPHA32F_EXTAccepted by theinternalformat
parameter of TexStorage when implemented on OpenGL ES.- See Also:
-
GL_LUMINANCE32F_EXT
public static final int GL_LUMINANCE32F_EXTAccepted by theinternalformat
parameter of TexStorage when implemented on OpenGL ES.- See Also:
-
GL_LUMINANCE_ALPHA32F_EXT
public static final int GL_LUMINANCE_ALPHA32F_EXTAccepted by theinternalformat
parameter of TexStorage when implemented on OpenGL ES.- See Also:
-
GL_RGBA16F_EXT
public static final int GL_RGBA16F_EXTAccepted by theinternalformat
parameter of TexStorage when implemented on OpenGL ES.- See Also:
-
GL_RGB16F_EXT
public static final int GL_RGB16F_EXTAccepted by theinternalformat
parameter of TexStorage when implemented on OpenGL ES.- See Also:
-
GL_ALPHA16F_EXT
public static final int GL_ALPHA16F_EXTAccepted by theinternalformat
parameter of TexStorage when implemented on OpenGL ES.- See Also:
-
GL_LUMINANCE16F_EXT
public static final int GL_LUMINANCE16F_EXTAccepted by theinternalformat
parameter of TexStorage when implemented on OpenGL ES.- See Also:
-
GL_LUMINANCE_ALPHA16F_EXT
public static final int GL_LUMINANCE_ALPHA16F_EXTAccepted by theinternalformat
parameter of TexStorage when implemented on OpenGL ES.- See Also:
-
GL_RGB10_A2_EXT
public static final int GL_RGB10_A2_EXTAccepted by theinternalformat
parameter of TexStorage when implemented on OpenGL ES.- See Also:
-
GL_RGB10_EXT
public static final int GL_RGB10_EXTAccepted by theinternalformat
parameter of TexStorage when implemented on OpenGL ES.- See Also:
-
GL_BGRA8_EXT
public static final int GL_BGRA8_EXTAccepted by theinternalformat
parameter of TexStorage when implemented on OpenGL ES.- See Also:
-
GL_R8_EXT
public static final int GL_R8_EXTAccepted by theinternalformat
parameter of TexStorage when implemented on OpenGL ES.- See Also:
-
GL_RG8_EXT
public static final int GL_RG8_EXTAccepted by theinternalformat
parameter of TexStorage when implemented on OpenGL ES.- See Also:
-
GL_R32F_EXT
public static final int GL_R32F_EXTAccepted by theinternalformat
parameter of TexStorage when implemented on OpenGL ES.- See Also:
-
GL_RG32F_EXT
public static final int GL_RG32F_EXTAccepted by theinternalformat
parameter of TexStorage when implemented on OpenGL ES.- See Also:
-
GL_R16F_EXT
public static final int GL_R16F_EXTAccepted by theinternalformat
parameter of TexStorage when implemented on OpenGL ES.- See Also:
-
GL_RG16F_EXT
public static final int GL_RG16F_EXTAccepted by theinternalformat
parameter of TexStorage when implemented on OpenGL ES.- See Also:
-
GL_RGB_RAW_422_APPLE
public static final int GL_RGB_RAW_422_APPLEAccepted by theinternalformat
parameter of TexStorage when implemented on OpenGL ES.- See Also:
-
-
Method Details
-
glTexStorage1DEXT
public static void glTexStorage1DEXT(int target, int levels, int internalformat, int width) -
glTexStorage2DEXT
public static void glTexStorage2DEXT(int target, int levels, int internalformat, int width, int height) -
glTexStorage3DEXT
public static void glTexStorage3DEXT(int target, int levels, int internalformat, int width, int height, int depth) -
glTextureStorage1DEXT
public static void glTextureStorage1DEXT(int texture, int target, int levels, int internalformat, int width) -
glTextureStorage2DEXT
public static void glTextureStorage2DEXT(int texture, int target, int levels, int internalformat, int width, int height) -
glTextureStorage3DEXT
public static void glTextureStorage3DEXT(int texture, int target, int levels, int internalformat, int width, int height, int depth)
-