Interface BufferFactory


public interface BufferFactory
Factory for OpenCL buffers with additional functionality
  • Method Details

    • getIntBuffer

      static BufferGPU<IntBuffer> getIntBuffer(com.jogamp.opencl.CLContext clContext)
      Creates resizable IntegerBuffer
      Returns:
      IntegerBuffer
    • getVoxelPointBuffer

      static WriteBufferGPU<javax.vecmath.Point3d> getVoxelPointBuffer(com.jogamp.opencl.CLContext context)
      Creates resizable VoxelBuffer
      Returns:
      VoxelBuffer
    • getVoxelVectorBuffer

      static WriteBufferGPU<javax.vecmath.Vector3d> getVoxelVectorBuffer(com.jogamp.opencl.CLContext context)
      Creates resizable VoxelBuffer
      Returns:
      VoxelBuffer
    • getRayIntersectionBuffer

      static BufferGPU<FloatBuffer> getRayIntersectionBuffer(com.jogamp.opencl.CLContext context)
      Creates resizable RayIntersectionBuffer to receive intersections calculate on GPU
      Returns:
      RayIntersectionBuffer
    • getMeshTriangleBuffer

      static WriteBufferGPU<MeshTriangle> getMeshTriangleBuffer(com.jogamp.opencl.CLContext clContext)
      Buffer to hold Mesh Triangles in GPU memory
      Returns:
      MeshTriangleBuffer