Class IntegerBuffer

java.lang.Object
cz.fidentis.analyst.opencl.memory.BufferGPU<IntBuffer>
cz.fidentis.analyst.opencl.memory.impl.IntegerBuffer
All Implemented Interfaces:
CLResources

public class IntegerBuffer extends BufferGPU<IntBuffer>
Simple resizable buffer to store integers
  • 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

      public com.jogamp.opencl.CLBuffer<IntBuffer> get()
      Description copied from class: BufferGPU
      Get underlying CLBuffer
      Specified by:
      get in class BufferGPU<IntBuffer>
      Returns:
      CLBuffer
    • rewind

      public void rewind()
      Description copied from class: BufferGPU
      Rewinds the buffer
      Specified by:
      rewind in class BufferGPU<IntBuffer>
    • allocateBuffer

      protected void allocateBuffer(int desiredSize)
      Description copied from class: BufferGPU
      Allocate the buffer to fit the elements
      Specified by:
      allocateBuffer in class BufferGPU<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 class BufferGPU<IntBuffer>
      Parameters:
      desiredSize - desired size of the buffer