Class EXTBufferStorage
- java.lang.Object
-
- org.lwjgl.opengles.EXTBufferStorage
-
public class EXTBufferStorage extends java.lang.Object
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
Fields Modifier and Type Field and Description static int
GL_BUFFER_IMMUTABLE_STORAGE_EXT
GL_BUFFER_STORAGE_FLAGS_EXTMAP_PERSISTENT_BIT_EXT 0x0040 (as above) MAP_COHERENT_BIT_EXT 0x0080 (as above) Accepted by thepname
parameter of GetBufferParameter{i|i64}v.static int
GL_CLIENT_MAPPED_BUFFER_BARRIER_BIT_EXT
Accepted by thebarriers
parameter of MemoryBarrier.static int
GL_CLIENT_STORAGE_BIT_EXT
GL_DYNAMIC_STORAGE_BIT_EXT
GL_MAP_COHERENT_BIT_EXT
GL_MAP_PERSISTENT_BIT_EXTAccepted in theflags
parameter of BufferStorageEXT and NamedBufferStorageEXT.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static void
glBufferStorageEXT(int target, java.nio.ByteBuffer data, int flags)
ByteBuffer version of:BufferStorageEXT
static void
glBufferStorageEXT(int target, float[] data, int flags)
float[] version of:BufferStorageEXT
static void
glBufferStorageEXT(int target, java.nio.FloatBuffer data, int flags)
FloatBuffer version of:BufferStorageEXT
static void
glBufferStorageEXT(int target, int[] data, int flags)
int[] version of:BufferStorageEXT
static void
glBufferStorageEXT(int target, java.nio.IntBuffer data, int flags)
IntBuffer version of:BufferStorageEXT
static void
glBufferStorageEXT(int target, long size, int flags)
static void
glBufferStorageEXT(int target, short[] data, int flags)
short[] version of:BufferStorageEXT
static void
glBufferStorageEXT(int target, java.nio.ShortBuffer data, int flags)
ShortBuffer version of:BufferStorageEXT
-
-
-
Field Detail
-
GL_MAP_PERSISTENT_BIT_EXT
public static final int GL_MAP_PERSISTENT_BIT_EXT
Accepted in theflags
parameter of BufferStorageEXT and NamedBufferStorageEXT.- See Also:
- Constant Field Values
-
GL_MAP_COHERENT_BIT_EXT
public static final int GL_MAP_COHERENT_BIT_EXT
Accepted in theflags
parameter of BufferStorageEXT and NamedBufferStorageEXT.- See Also:
- Constant Field Values
-
GL_DYNAMIC_STORAGE_BIT_EXT
public static final int GL_DYNAMIC_STORAGE_BIT_EXT
Accepted in theflags
parameter of BufferStorageEXT and NamedBufferStorageEXT.- See Also:
- Constant Field Values
-
GL_CLIENT_STORAGE_BIT_EXT
public static final int GL_CLIENT_STORAGE_BIT_EXT
Accepted in theflags
parameter of BufferStorageEXT and NamedBufferStorageEXT.- See Also:
- Constant Field Values
-
GL_BUFFER_IMMUTABLE_STORAGE_EXT
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 thepname
parameter of GetBufferParameter{i|i64}v.- See Also:
- Constant Field Values
-
GL_BUFFER_STORAGE_FLAGS_EXT
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 thepname
parameter of GetBufferParameter{i|i64}v.- See Also:
- Constant Field Values
-
GL_CLIENT_MAPPED_BUFFER_BARRIER_BIT_EXT
public static final int GL_CLIENT_MAPPED_BUFFER_BARRIER_BIT_EXT
Accepted by thebarriers
parameter of MemoryBarrier.- See Also:
- Constant Field Values
-
-
Method Detail
-
glBufferStorageEXT
public static void glBufferStorageEXT(int target, long size, int flags)
-
glBufferStorageEXT
public static void glBufferStorageEXT(int target, java.nio.ByteBuffer data, int flags)
ByteBuffer version of:BufferStorageEXT
-
glBufferStorageEXT
public static void glBufferStorageEXT(int target, java.nio.ShortBuffer data, int flags)
ShortBuffer version of:BufferStorageEXT
-
glBufferStorageEXT
public static void glBufferStorageEXT(int target, java.nio.IntBuffer data, int flags)
IntBuffer version of:BufferStorageEXT
-
glBufferStorageEXT
public static void glBufferStorageEXT(int target, java.nio.FloatBuffer data, int flags)
FloatBuffer version of:BufferStorageEXT
-
glBufferStorageEXT
public static void glBufferStorageEXT(int target, short[] data, int flags)
short[] version of:BufferStorageEXT
-
glBufferStorageEXT
public static void glBufferStorageEXT(int target, int[] data, int flags)
int[] version of:BufferStorageEXT
-
glBufferStorageEXT
public static void glBufferStorageEXT(int target, float[] data, int flags)
float[] version of:BufferStorageEXT
-
-