Top Description Fields Constructors Methods
org.lwjgl.opengles

public Class EXTBufferStorage

extends Object
Class Inheritance
Imports
java.nio.*, org.lwjgl.system.*

Native bindings to the EXT_buffer_storage extension.

OpenGL ES has long supported buffer objects as a means of storing data that may be used to source vertex attributes, pixel data for textures, uniforms and other elements. In un-extended ES, buffer data stores are mutable - that is, they may be de-allocated or resized while they are in use. The GL_EXT_texture_storage extension added immutable storage for texture objects (and was subsequently incorporated into OpenGL ES 3.0). This extension further applies the concept of immutable storage to buffer objects. If an implementation is aware of a buffer's immutability, it may be able to make certain assumptions or apply particular optimizations in order to increase performance or reliability.

Furthermore, this extension allows applications to pass additional information about a requested allocation to the implementation which it may use to select memory heaps, caching behavior or allocation strategies.

Finally, this extension introduces the concept of persistent client mappings of buffer objects, which allow clients to retain pointers to a buffer's data store returned as the result of a mapping, and to issue drawing commands while those mappings are in place.

Requires GLES 3.1.

Field Summary

Modifier and TypeField and Description
public static final int
GL_BUFFER_IMMUTABLE_STORAGE_EXT

MAP_PERSISTENT_BIT_EXT 0x0040 (as above) MAP_COHERENT_BIT_EXT 0x0080 (as above) Accepted by the pname parameter of GetBufferParameter{i|i64}v.

public static final int
GL_BUFFER_STORAGE_FLAGS_EXT

MAP_PERSISTENT_BIT_EXT 0x0040 (as above) MAP_COHERENT_BIT_EXT 0x0080 (as above) Accepted by the pname parameter of GetBufferParameter{i|i64}v.

public static final int
GL_CLIENT_MAPPED_BUFFER_BARRIER_BIT_EXT

Accepted by the barriers parameter of MemoryBarrier.

public static final int
GL_CLIENT_STORAGE_BIT_EXT

Accepted in the flags parameter of BufferStorageEXT and NamedBufferStorageEXT.

public static final int
GL_DYNAMIC_STORAGE_BIT_EXT

Accepted in the flags parameter of BufferStorageEXT and NamedBufferStorageEXT.

public static final int
GL_MAP_COHERENT_BIT_EXT

Accepted in the flags parameter of BufferStorageEXT and NamedBufferStorageEXT.

public static final int
GL_MAP_PERSISTENT_BIT_EXT

Accepted in the flags parameter of BufferStorageEXT and NamedBufferStorageEXT.

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
public static void
glBufferStorageEXT(int target, long size, int flags)

public static void
glBufferStorageEXT(int target, ByteBuffer data, int flags)

public static void
glBufferStorageEXT(int target, ShortBuffer data, int flags)

public static void
glBufferStorageEXT(int target, IntBuffer data, int flags)

public static void
glBufferStorageEXT(int target, FloatBuffer data, int flags)

public static void
glBufferStorageEXT(int target, short[] data, int flags)

Array version of: BufferStorageEXT

public static void
glBufferStorageEXT(int target, int[] data, int flags)

Array version of: BufferStorageEXT

public static void
glBufferStorageEXT(int target, float[] data, int flags)

Array version of: BufferStorageEXT

public static void
glNamedBufferStorageEXT(int buffer, long size, int flags)

public static void
glNamedBufferStorageEXT(int buffer, ByteBuffer data, int flags)

public static void
glNamedBufferStorageEXT(int buffer, ShortBuffer data, int flags)

public static void
glNamedBufferStorageEXT(int buffer, IntBuffer data, int flags)

public static void
glNamedBufferStorageEXT(int buffer, FloatBuffer data, int flags)

public static void
glNamedBufferStorageEXT(int buffer, short[] data, int flags)

Array version of: NamedBufferStorageEXT

public static void
glNamedBufferStorageEXT(int buffer, int[] data, int flags)

Array version of: NamedBufferStorageEXT

public static void
glNamedBufferStorageEXT(int buffer, float[] data, int flags)

Array version of: NamedBufferStorageEXT

public static native void
nglBufferStorageEXT(int target, long size, long data, int flags)

public static native void
nglNamedBufferStorageEXT(int buffer, long size, long data, int flags)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

GL_BUFFER_IMMUTABLE_STORAGE_EXTback to summary
public static final int GL_BUFFER_IMMUTABLE_STORAGE_EXT

MAP_PERSISTENT_BIT_EXT 0x0040 (as above) MAP_COHERENT_BIT_EXT 0x0080 (as above) Accepted by the pname parameter of GetBufferParameter{i|i64}v.

GL_BUFFER_STORAGE_FLAGS_EXTback to summary
public static final int GL_BUFFER_STORAGE_FLAGS_EXT

MAP_PERSISTENT_BIT_EXT 0x0040 (as above) MAP_COHERENT_BIT_EXT 0x0080 (as above) Accepted by the pname parameter of GetBufferParameter{i|i64}v.

GL_CLIENT_MAPPED_BUFFER_BARRIER_BIT_EXTback to summary
public static final int GL_CLIENT_MAPPED_BUFFER_BARRIER_BIT_EXT

Accepted by the barriers parameter of MemoryBarrier.

GL_CLIENT_STORAGE_BIT_EXTback to summary
public static final int GL_CLIENT_STORAGE_BIT_EXT

Accepted in the flags parameter of BufferStorageEXT and NamedBufferStorageEXT.

GL_DYNAMIC_STORAGE_BIT_EXTback to summary
public static final int GL_DYNAMIC_STORAGE_BIT_EXT

Accepted in the flags parameter of BufferStorageEXT and NamedBufferStorageEXT.

GL_MAP_COHERENT_BIT_EXTback to summary
public static final int GL_MAP_COHERENT_BIT_EXT

Accepted in the flags parameter of BufferStorageEXT and NamedBufferStorageEXT.

GL_MAP_PERSISTENT_BIT_EXTback to summary
public static final int GL_MAP_PERSISTENT_BIT_EXT

Accepted in the flags parameter of BufferStorageEXT and NamedBufferStorageEXT.

Constructor Detail

EXTBufferStorageback to summary
protected EXTBufferStorage()

Method Detail

glBufferStorageEXTback to summary
public static void glBufferStorageEXT(int target, long size, int flags)
glBufferStorageEXTback to summary
public static void glBufferStorageEXT(int target, ByteBuffer data, int flags)
glBufferStorageEXTback to summary
public static void glBufferStorageEXT(int target, ShortBuffer data, int flags)
glBufferStorageEXTback to summary
public static void glBufferStorageEXT(int target, IntBuffer data, int flags)
glBufferStorageEXTback to summary
public static void glBufferStorageEXT(int target, FloatBuffer data, int flags)
glBufferStorageEXTback to summary
public static void glBufferStorageEXT(int target, short[] data, int flags)

Array version of: BufferStorageEXT

glBufferStorageEXTback to summary
public static void glBufferStorageEXT(int target, int[] data, int flags)

Array version of: BufferStorageEXT

glBufferStorageEXTback to summary
public static void glBufferStorageEXT(int target, float[] data, int flags)

Array version of: BufferStorageEXT

glNamedBufferStorageEXTback to summary
public static void glNamedBufferStorageEXT(int buffer, long size, int flags)
glNamedBufferStorageEXTback to summary
public static void glNamedBufferStorageEXT(int buffer, ByteBuffer data, int flags)
glNamedBufferStorageEXTback to summary
public static void glNamedBufferStorageEXT(int buffer, ShortBuffer data, int flags)
glNamedBufferStorageEXTback to summary
public static void glNamedBufferStorageEXT(int buffer, IntBuffer data, int flags)
glNamedBufferStorageEXTback to summary
public static void glNamedBufferStorageEXT(int buffer, FloatBuffer data, int flags)
glNamedBufferStorageEXTback to summary
public static void glNamedBufferStorageEXT(int buffer, short[] data, int flags)

Array version of: NamedBufferStorageEXT

glNamedBufferStorageEXTback to summary
public static void glNamedBufferStorageEXT(int buffer, int[] data, int flags)

Array version of: NamedBufferStorageEXT

glNamedBufferStorageEXTback to summary
public static void glNamedBufferStorageEXT(int buffer, float[] data, int flags)

Array version of: NamedBufferStorageEXT

nglBufferStorageEXTback to summary
public static native void nglBufferStorageEXT(int target, long size, long data, int flags)
nglNamedBufferStorageEXTback to summary
public static native void nglNamedBufferStorageEXT(int buffer, long size, long data, int flags)