Class IntegerBuffer
java.lang.Object
cz.fidentis.analyst.opencl.memory.BufferGPU<IntBuffer>
cz.fidentis.analyst.opencl.memory.impl.IntegerBuffer
- All Implemented Interfaces:
CLResources
Simple resizable buffer to store integers
-
Constructor Summary
ConstructorsConstructorDescriptionIntegerBuffer
(com.jogamp.opencl.CLContext context) Initializes buffer of integers -
Method Summary
Modifier and TypeMethodDescriptionprotected void
allocateBuffer
(int desiredSize) Allocate the buffer to fit the elementscom.jogamp.opencl.CLBuffer
<IntBuffer> get()
Get underlying CLBuffervoid
release()
Explicitly releases GPU resources held by this objectprotected void
resizeSubBuffer
(int desiredSize) Creating new SubBuffer of the main buffer to operate with smaller amount of memoryvoid
rewind()
Rewinds the bufferMethods inherited from class cz.fidentis.analyst.opencl.memory.BufferGPU
getClContext, getCount, getElementSize, getQueue, getSize, resize
-
Constructor Details
-
IntegerBuffer
public IntegerBuffer(com.jogamp.opencl.CLContext context) Initializes buffer of integers
-
-
Method Details
-
release
public void release()Description copied from interface:CLResources
Explicitly releases GPU resources held by this object -
get
Description copied from class:BufferGPU
Get underlying CLBuffer -
rewind
public void rewind()Description copied from class:BufferGPU
Rewinds the buffer -
allocateBuffer
protected void allocateBuffer(int desiredSize) Description copied from class:BufferGPU
Allocate the buffer to fit the elements- Specified by:
allocateBuffer
in classBufferGPU<IntBuffer>
- Parameters:
desiredSize
- desired size of the buffer
-
resizeSubBuffer
protected void resizeSubBuffer(int desiredSize) Description copied from class:BufferGPU
Creating new SubBuffer of the main buffer to operate with smaller amount of memory- Specified by:
resizeSubBuffer
in classBufferGPU<IntBuffer>
- Parameters:
desiredSize
- desired size of the buffer
-