Public Member Functions | Public Attributes

btOpenCLBuffer< ElementType > Class Template Reference

#include <btSoftBodySolverBuffer_OpenCL.h>

Collaboration diagram for btOpenCLBuffer< ElementType >:
Collaboration graph
[legend]

List of all members.

Public Member Functions

bool createBuffer (cl_mem *preexistingBuffer=0)
 btOpenCLBuffer (cl_command_queue commandQue, cl_context ctx, btAlignedObjectArray< ElementType > *CPUBuffer, bool readOnly)
 ~btOpenCLBuffer ()
bool moveToGPU ()
bool moveFromGPU ()
bool copyFromGPU ()
virtual void changedOnCPU ()

Public Attributes

cl_command_queue m_cqCommandQue
cl_context m_clContext
cl_mem m_buffer
btAlignedObjectArray
< ElementType > * 
m_CPUBuffer
int m_gpuSize
bool m_onGPU
bool m_readOnlyOnGPU
bool m_allocated

Detailed Description

template<typename ElementType>
class btOpenCLBuffer< ElementType >

Definition at line 35 of file btSoftBodySolverBuffer_OpenCL.h.


Constructor & Destructor Documentation

template<typename ElementType>
btOpenCLBuffer< ElementType >::btOpenCLBuffer ( cl_command_queue  commandQue,
cl_context  ctx,
btAlignedObjectArray< ElementType > *  CPUBuffer,
bool  readOnly 
) [inline]

Definition at line 84 of file btSoftBodySolverBuffer_OpenCL.h.

template<typename ElementType>
btOpenCLBuffer< ElementType >::~btOpenCLBuffer (  )  [inline]

Definition at line 96 of file btSoftBodySolverBuffer_OpenCL.h.


Member Function Documentation

template<typename ElementType>
virtual void btOpenCLBuffer< ElementType >::changedOnCPU (  )  [inline, virtual]

Definition at line 202 of file btSoftBodySolverBuffer_OpenCL.h.

template<typename ElementType>
bool btOpenCLBuffer< ElementType >::copyFromGPU (  )  [inline]

Definition at line 177 of file btSoftBodySolverBuffer_OpenCL.h.

template<typename ElementType>
bool btOpenCLBuffer< ElementType >::createBuffer ( cl_mem preexistingBuffer = 0  )  [inline]

Definition at line 53 of file btSoftBodySolverBuffer_OpenCL.h.

template<typename ElementType>
bool btOpenCLBuffer< ElementType >::moveFromGPU (  )  [inline]

Definition at line 150 of file btSoftBodySolverBuffer_OpenCL.h.

template<typename ElementType>
bool btOpenCLBuffer< ElementType >::moveToGPU (  )  [inline]

Definition at line 102 of file btSoftBodySolverBuffer_OpenCL.h.


Member Data Documentation

template<typename ElementType>
bool btOpenCLBuffer< ElementType >::m_allocated

Definition at line 50 of file btSoftBodySolverBuffer_OpenCL.h.

template<typename ElementType>
cl_mem btOpenCLBuffer< ElementType >::m_buffer

Definition at line 41 of file btSoftBodySolverBuffer_OpenCL.h.

template<typename ElementType>
cl_context btOpenCLBuffer< ElementType >::m_clContext

Definition at line 40 of file btSoftBodySolverBuffer_OpenCL.h.

template<typename ElementType>
btAlignedObjectArray< ElementType >* btOpenCLBuffer< ElementType >::m_CPUBuffer

Definition at line 45 of file btSoftBodySolverBuffer_OpenCL.h.

template<typename ElementType>
cl_command_queue btOpenCLBuffer< ElementType >::m_cqCommandQue

Definition at line 39 of file btSoftBodySolverBuffer_OpenCL.h.

template<typename ElementType>
int btOpenCLBuffer< ElementType >::m_gpuSize

Definition at line 47 of file btSoftBodySolverBuffer_OpenCL.h.

template<typename ElementType>
bool btOpenCLBuffer< ElementType >::m_onGPU

Definition at line 48 of file btSoftBodySolverBuffer_OpenCL.h.

template<typename ElementType>
bool btOpenCLBuffer< ElementType >::m_readOnlyOnGPU

Definition at line 49 of file btSoftBodySolverBuffer_OpenCL.h.


The documentation for this class was generated from the following file: