Class MeshTriangleBuffer

All Implemented Interfaces:
CLResources

public class MeshTriangleBuffer extends WriteBufferGPU<MeshTriangle>
Class providing readable conversion of MeshTriangle data to reside in OpenCL buffers Each triangle is represented by 3 points and 3 vectors. Each point and vector are copied to separate buffers, so the whole triangle is stored under one index. For ex. To get 5th triangle on GPU --> we need to collect the components under index 5
  • Constructor Details

    • MeshTriangleBuffer

      public MeshTriangleBuffer(com.jogamp.opencl.CLContext clContext)
      Initializes buffer of size according to element count
      Parameters:
      clContext - CLContext of the buffer
  • Method Details