Interface BufferFactory
public interface BufferFactory
Factory for OpenCL buffers with additional functionality
-
Method Summary
Static MethodsModifier and TypeMethodDescriptiongetIntBuffer
(com.jogamp.opencl.CLContext clContext) Creates resizableIntegerBuffer
static WriteBufferGPU
<MeshTriangle> getMeshTriangleBuffer
(com.jogamp.opencl.CLContext clContext) Buffer to hold Mesh Triangles in GPU memorystatic BufferGPU
<FloatBuffer> getRayIntersectionBuffer
(com.jogamp.opencl.CLContext context) Creates resizableRayIntersectionBuffer
to receive intersections calculate on GPUstatic WriteBufferGPU
<javax.vecmath.Point3d> getVoxelPointBuffer
(com.jogamp.opencl.CLContext context) Creates resizableVoxelBuffer
static WriteBufferGPU
<javax.vecmath.Vector3d> getVoxelVectorBuffer
(com.jogamp.opencl.CLContext context) Creates resizableVoxelBuffer
-
Method Details
-
getIntBuffer
Creates resizableIntegerBuffer
- Returns:
- IntegerBuffer
-
getVoxelPointBuffer
static WriteBufferGPU<javax.vecmath.Point3d> getVoxelPointBuffer(com.jogamp.opencl.CLContext context) Creates resizableVoxelBuffer
- Returns:
- VoxelBuffer
-
getVoxelVectorBuffer
static WriteBufferGPU<javax.vecmath.Vector3d> getVoxelVectorBuffer(com.jogamp.opencl.CLContext context) Creates resizableVoxelBuffer
- Returns:
- VoxelBuffer
-
getRayIntersectionBuffer
Creates resizableRayIntersectionBuffer
to receive intersections calculate on GPU- Returns:
- RayIntersectionBuffer
-
getMeshTriangleBuffer
Buffer to hold Mesh Triangles in GPU memory- Returns:
- MeshTriangleBuffer
-