ARB_texture_buffer_object (which was promoted to core in OpenGL 3.1) introduced the ability to attach the data store of a buffer object to a buffer
texture and access it from shaders. The extension only allows the entire store of the buffer object to the texture. This extension expands on this and
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.
Requires OpenGL 1.. Promoted to core in OpenGL 4..
| Modifier and Type | Field and Description |
|---|---|
| public static final int | GL_TEXTURE_BUFFER_OFFSET
Accepted by the |
| public static final int | GL_TEXTURE_BUFFER_OFFSET_ALIGNMENT
Accepted by the |
| public static final int | GL_TEXTURE_BUFFER_SIZE
Accepted by the |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description | |
|---|---|---|
| public static void | glTexBufferRange(int
the target of the operation. Must be: target, int
the internal format of the data in the store belonging to internalformat, int bufferthe name of the buffer object whose storage to attach to the active buffer texture buffer, long the offset of the start of the range of the buffer's data store to attach offset, long the size of the range of the buffer's data store to attach size)Binds a range of a buffer's data store to a buffer texture. | |
| public static native void | glTextureBufferRangeEXT(int
the texture object texture, int the target of the operation. Must be: target, int
the internal format of the data in the store belonging to internalformat, int bufferthe name of the buffer object whose storage to attach to the active buffer texture buffer, long the offset of the start of the range of the buffer's data store to attach offset, long the size of the range of the buffer's data store to attach size)DSA version of |
| GL_TEXTURE_BUFFER_OFFSET | back to summary |
|---|---|
| public static final int GL_TEXTURE_BUFFER_OFFSET Accepted by the | |
| GL_TEXTURE_BUFFER_OFFSET_ALIGNMENT | back to summary |
|---|---|
| public static final int GL_TEXTURE_BUFFER_OFFSET_ALIGNMENT Accepted by the | |
| GL_TEXTURE_BUFFER_SIZE | back to summary |
|---|---|
| public static final int GL_TEXTURE_BUFFER_SIZE Accepted by the | |
| ARBTextureBufferRange | back to summary |
|---|---|
| protected ARBTextureBufferRange() | |
| glTexBufferRange | back to summary | |
|---|---|---|
| public static void glTexBufferRange(int target, int internalformat, int buffer, long offset, long size) Binds a range of a buffer's data store to a buffer texture.
| ||
| glTextureBufferRangeEXT | back to summary | |
|---|---|---|
| public static native void glTextureBufferRangeEXT(int texture, int target, int internalformat, int buffer, long offset, long size) DSA version of
| ||