btOpenCLBuffer< Vectormath::Aos::Vector3 > m_clNormal
void generateBatches()
Generate (and later update) the batching for the entire triangle set.
virtual bool moveFromAccelerator()
Move data from host memory from the accelerator.
Start and length values for computation batches over link data.
virtual void setTriangleAt(const btSoftBodyTriangleData::TriangleDescription &triangle, int triangleIndex)
Insert the link described into the correct data structures assuming space has already been allocated ...
btSoftBodyTriangleDataOpenCL(cl_command_queue queue, cl_context ctx)
virtual bool moveToAccelerator()
Move data from host memory to the accelerator.
btOpenCLBuffer< btSoftBodyTriangleData::TriangleNodeSet > m_clVertexIndices
btOpenCLBuffer< float > m_clArea
btAlignedObjectArray< btSomePair > m_batchStartLengths
btAlignedObjectArray< int > m_triangleAddresses
Link addressing information for each cloth.
virtual bool onAccelerator()
Return true if data is on the accelerator.
virtual ~btSoftBodyTriangleDataOpenCL()
virtual void createTriangles(int numTriangles)
Allocate enough space in all link-related arrays to fit numLinks links.