Class AtomicCounterBufferImpl
java.lang.Object
cz.fidentis.analyst.glsl.buffers.impl.AbstractBuffer
cz.fidentis.analyst.glsl.buffers.impl.SsboBufferImpl
cz.fidentis.analyst.glsl.buffers.impl.AtomicCounterBufferImpl
- All Implemented Interfaces:
AtomicCounterBuffer
,GlslBuffer
,SsboBuffer
A buffer for
GL_ATOMIC_COUNTER
target.-
Constructor Summary
ConstructorsConstructorDescriptionAtomicCounterBufferImpl
(BufferDef bufferName, com.jogamp.opengl.GLContext glContext, int usage) Constructor. -
Method Summary
Methods inherited from class cz.fidentis.analyst.glsl.buffers.impl.SsboBufferImpl
allocate, allocate, bind, getItemSize, getUsage, readFrom, writeBytesTo, writeItemsTo
Methods inherited from class cz.fidentis.analyst.glsl.buffers.impl.AbstractBuffer
getBindingIndex, getBufferName, getGlName, getGlTarget, glContext, setGlName
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface cz.fidentis.analyst.glsl.buffers.GlslBuffer
bind, getBindingIndex, getBufferName, getGlName, getGlTarget, glContext
Methods inherited from interface cz.fidentis.analyst.glsl.buffers.SsboBuffer
allocate, allocate, getItemSize, getUsage, readFrom, writeBytesTo, writeItemsTo
-
Constructor Details
-
AtomicCounterBufferImpl
public AtomicCounterBufferImpl(BufferDef bufferName, com.jogamp.opengl.GLContext glContext, int usage) Constructor.- Parameters:
bufferName
- buffer nameglContext
- OpenGL contextusage
- OpenGL usage type
-
-
Method Details
-
reset
public void reset()Description copied from interface:AtomicCounterBuffer
Resets the counter to zero.- Specified by:
reset
in interfaceAtomicCounterBuffer
-
allocate
public void allocate()Description copied from interface:AtomicCounterBuffer
Allocate counter of the size of 4 bytes (int).- Specified by:
allocate
in interfaceAtomicCounterBuffer
-