Top Description Fields Constructors Methods
org.lwjgl.opengles

public Class EXTTextureBuffer

extends Object
Class Inheritance
Imports
org.lwjgl.system.*

Native bindings to the EXT_texture_buffer extension.

This extension provides a new texture type, called a buffer texture. Buffer textures are one-dimensional arrays of texels whose storage comes from an attached buffer object. When a buffer object is bound to a buffer texture, a format is specified, and the data in the buffer object is treated as an array of texels of the specified format.

The use of a buffer object to provide storage allows the texture data to be specified in a number of different ways: via buffer object loads (BufferData), direct CPU writes (MapBuffer), or framebuffer readbacks to pixel buffer objects (ReadPixels). A buffer object can also be loaded by transform feedback, which captures selected transformed attributes of vertices processed by the GL. Several of these mechanisms do not require an extra data copy, which would be required when using conventional TexImage-like entry points.

Buffer textures do not support mipmapping, texture lookups with normalized floating-point texture coordinates, and texture filtering of any sort. They can be accessed via single texel fetch operations in programmable shaders, using a new sampler type and texel fetch function, and access can be controlled using the same memory barrier operations as for other texture types.

Buffer textures are treated as (potentially large) one-dimensional textures; the maximum texture size supported for buffer textures in the initial implementation of this extension is 227 texels (note that this extension only guarantees support for buffer textures with 216 texels, but we expect most implementations to exceed that substantially). When a buffer object is attached to a buffer texture, a size is not specified; rather, the number of texels in the texture is taken by dividing the size of the buffer object by the size of each texel.

This extension also allows a sub-range of the buffer's data store to be attached to a texture. This can be used, for example, to allow multiple buffer textures to be backed by independent sub-ranges of the same buffer object, or for different sub-ranges of a single buffer object to be used for different purposes.

Field Summary

Modifier and TypeField and Description
public static final int
GL_IMAGE_BUFFER_EXT

Returned in the type parameter of GetActiveUniform, the params parameter of GetActiveUniformsiv, and the params parameter of GetProgramResourceiv when the TYPE property is queried on the UNIFORM interface.

public static final int
GL_INT_IMAGE_BUFFER_EXT

Returned in the type parameter of GetActiveUniform, the params parameter of GetActiveUniformsiv, and the params parameter of GetProgramResourceiv when the TYPE property is queried on the UNIFORM interface.

public static final int
GL_INT_SAMPLER_BUFFER_EXT

Returned in the type parameter of GetActiveUniform, the params parameter of GetActiveUniformsiv, and the params parameter of GetProgramResourceiv when the TYPE property is queried on the UNIFORM interface.

public static final int
GL_MAX_TEXTURE_BUFFER_SIZE_EXT

Accepted by the pname parameters of GetBooleanv, GetFloatv, and GetIntegerv.

public static final int
GL_SAMPLER_BUFFER_EXT

Returned in the type parameter of GetActiveUniform, the params parameter of GetActiveUniformsiv, and the params parameter of GetProgramResourceiv when the TYPE property is queried on the UNIFORM interface.

public static final int
GL_TEXTURE_BINDING_BUFFER_EXT

Accepted by the pname parameters of GetBooleanv, GetFloatv, and GetIntegerv.

public static final int
GL_TEXTURE_BUFFER_BINDING_EXT

Accepted by the pname parameters of GetBooleanv, GetFloatv, and GetIntegerv.

public static final int
GL_TEXTURE_BUFFER_DATA_STORE_BINDING_EXT

Accepted by the pname parameter of GetTexLevelParameter.

public static final int
GL_TEXTURE_BUFFER_EXT

Accepted by the target parameter of BindBuffer, BufferData, BufferSubData, MapBufferRange, BindTexture, UnmapBuffer, GetBufferParameteriv, GetBufferPointerv, TexBufferEXT, and TexBufferRangeEXT.

public static final int
GL_TEXTURE_BUFFER_OFFSET_ALIGNMENT_EXT

Accepted by the pname parameters of GetBooleanv, GetFloatv, and GetIntegerv.

public static final int
GL_TEXTURE_BUFFER_OFFSET_EXT

Accepted by the pname parameter of GetTexLevelParameter.

public static final int
GL_TEXTURE_BUFFER_SIZE_EXT

Accepted by the pname parameter of GetTexLevelParameter.

public static final int
GL_UNSIGNED_INT_IMAGE_BUFFER_EXT

Returned in the type parameter of GetActiveUniform, the params parameter of GetActiveUniformsiv, and the params parameter of GetProgramResourceiv when the TYPE property is queried on the UNIFORM interface.

public static final int
GL_UNSIGNED_INT_SAMPLER_BUFFER_EXT

Returned in the type parameter of GetActiveUniform, the params parameter of GetActiveUniformsiv, and the params parameter of GetProgramResourceiv when the TYPE property is queried on the UNIFORM interface.

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
public static native void
glTexBufferEXT(int target, int internalformat, int buffer)

public static native void
glTexBufferRangeEXT(int target, int internalformat, int buffer, long offset, long size)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

GL_IMAGE_BUFFER_EXTback to summary
public static final int GL_IMAGE_BUFFER_EXT

Returned in the type parameter of GetActiveUniform, the params parameter of GetActiveUniformsiv, and the params parameter of GetProgramResourceiv when the TYPE property is queried on the UNIFORM interface.

GL_INT_IMAGE_BUFFER_EXTback to summary
public static final int GL_INT_IMAGE_BUFFER_EXT

Returned in the type parameter of GetActiveUniform, the params parameter of GetActiveUniformsiv, and the params parameter of GetProgramResourceiv when the TYPE property is queried on the UNIFORM interface.

GL_INT_SAMPLER_BUFFER_EXTback to summary
public static final int GL_INT_SAMPLER_BUFFER_EXT

Returned in the type parameter of GetActiveUniform, the params parameter of GetActiveUniformsiv, and the params parameter of GetProgramResourceiv when the TYPE property is queried on the UNIFORM interface.

GL_MAX_TEXTURE_BUFFER_SIZE_EXTback to summary
public static final int GL_MAX_TEXTURE_BUFFER_SIZE_EXT

Accepted by the pname parameters of GetBooleanv, GetFloatv, and GetIntegerv.

GL_SAMPLER_BUFFER_EXTback to summary
public static final int GL_SAMPLER_BUFFER_EXT

Returned in the type parameter of GetActiveUniform, the params parameter of GetActiveUniformsiv, and the params parameter of GetProgramResourceiv when the TYPE property is queried on the UNIFORM interface.

GL_TEXTURE_BINDING_BUFFER_EXTback to summary
public static final int GL_TEXTURE_BINDING_BUFFER_EXT

Accepted by the pname parameters of GetBooleanv, GetFloatv, and GetIntegerv.

GL_TEXTURE_BUFFER_BINDING_EXTback to summary
public static final int GL_TEXTURE_BUFFER_BINDING_EXT

Accepted by the pname parameters of GetBooleanv, GetFloatv, and GetIntegerv.

GL_TEXTURE_BUFFER_DATA_STORE_BINDING_EXTback to summary
public static final int GL_TEXTURE_BUFFER_DATA_STORE_BINDING_EXT

Accepted by the pname parameter of GetTexLevelParameter.

GL_TEXTURE_BUFFER_EXTback to summary
public static final int GL_TEXTURE_BUFFER_EXT

Accepted by the target parameter of BindBuffer, BufferData, BufferSubData, MapBufferRange, BindTexture, UnmapBuffer, GetBufferParameteriv, GetBufferPointerv, TexBufferEXT, and TexBufferRangeEXT.

GL_TEXTURE_BUFFER_OFFSET_ALIGNMENT_EXTback to summary
public static final int GL_TEXTURE_BUFFER_OFFSET_ALIGNMENT_EXT

Accepted by the pname parameters of GetBooleanv, GetFloatv, and GetIntegerv.

GL_TEXTURE_BUFFER_OFFSET_EXTback to summary
public static final int GL_TEXTURE_BUFFER_OFFSET_EXT

Accepted by the pname parameter of GetTexLevelParameter.

GL_TEXTURE_BUFFER_SIZE_EXTback to summary
public static final int GL_TEXTURE_BUFFER_SIZE_EXT

Accepted by the pname parameter of GetTexLevelParameter.

GL_UNSIGNED_INT_IMAGE_BUFFER_EXTback to summary
public static final int GL_UNSIGNED_INT_IMAGE_BUFFER_EXT

Returned in the type parameter of GetActiveUniform, the params parameter of GetActiveUniformsiv, and the params parameter of GetProgramResourceiv when the TYPE property is queried on the UNIFORM interface.

GL_UNSIGNED_INT_SAMPLER_BUFFER_EXTback to summary
public static final int GL_UNSIGNED_INT_SAMPLER_BUFFER_EXT

Returned in the type parameter of GetActiveUniform, the params parameter of GetActiveUniformsiv, and the params parameter of GetProgramResourceiv when the TYPE property is queried on the UNIFORM interface.

Constructor Detail

EXTTextureBufferback to summary
protected EXTTextureBuffer()

Method Detail

glTexBufferEXTback to summary
public static native void glTexBufferEXT(int target, int internalformat, int buffer)
glTexBufferRangeEXTback to summary
public static native void glTexBufferRangeEXT(int target, int internalformat, int buffer, long offset, long size)