Package org.lwjgl.opengles
Class ANGLETextureUsage
- java.lang.Object
-
- org.lwjgl.opengles.ANGLETextureUsage
-
public final class ANGLETextureUsage extends java.lang.Object
Native bindings to the ANGLE_texture_usage extension.In some implementations it is advantageous to know the expected usage of a texture before the backing storage for it is allocated. This can help to inform the implementation's choice of format and type of memory used for the allocation. If the usage is not known in advance, the implementation essentially has to make a guess as to how it will be used. If it is later proven wrong, it may need to perform costly re-allocations and/or reformatting of the texture data, resulting in reduced performance.
This extension adds a texture usage flag that is specified via the TEXTURE_USAGE_ANGLE TexParameter. This can be used to indicate that the application knows that this texture will be used for rendering.
-
-
Field Summary
Fields Modifier and Type Field Description static int
GL_FRAMEBUFFER_ATTACHMENT_ANGLE
Accepted as a value toparam
for the TexParameter{if} and toparams
for the TexParameter{if}v commands with apname
of TEXTURE_USAGE_ANGLE; returned as possible values fordata
when GetTexParameter{if}v is queried with avalue
of TEXTURE_USAGE_ANGLE.static int
GL_TEXTURE_USAGE_ANGLE
Accepted as a value forpname
for the TexParameter{if} and TexParameter{if}v commands and for thevalue
parameter of GetTexParameter{if}v.
-
-
-
Field Detail
-
GL_TEXTURE_USAGE_ANGLE
public static final int GL_TEXTURE_USAGE_ANGLE
Accepted as a value forpname
for the TexParameter{if} and TexParameter{if}v commands and for thevalue
parameter of GetTexParameter{if}v.- See Also:
- Constant Field Values
-
GL_FRAMEBUFFER_ATTACHMENT_ANGLE
public static final int GL_FRAMEBUFFER_ATTACHMENT_ANGLE
Accepted as a value toparam
for the TexParameter{if} and toparams
for the TexParameter{if}v commands with apname
of TEXTURE_USAGE_ANGLE; returned as possible values fordata
when GetTexParameter{if}v is queried with avalue
of TEXTURE_USAGE_ANGLE.- See Also:
- Constant Field Values
-
-