4 #include "b3OpenCLArray.h"
5 #include "Bullet3Common/b3Scalar.h"
7 #include "Bullet3Common/shared/b3Int2.h"
8 #include "Bullet3Common/shared/b3Int4.h"
12 cl_command_queue m_commandQueue;
14 cl_kernel m_fillKernelInt2;
15 cl_kernel m_fillIntKernel;
16 cl_kernel m_fillUnsignedIntKernel;
17 cl_kernel m_fillFloatKernel;
24 b3UnsignedInt4 m_UnsignedData;
33 b3FillCL(cl_context ctx, cl_device_id device, cl_command_queue queue);
37 void execute(b3OpenCLArray<unsigned int>& src, const unsigned int value, int n, int offset = 0);
39 void execute(b3OpenCLArray<int>& src, const int value, int n, int offset = 0);
41 void execute(b3OpenCLArray<float>& src, const float value, int n, int offset = 0);
43 void execute(b3OpenCLArray<b3Int2>& src, const b3Int2& value, int n, int offset = 0);
45 void executeHost(b3AlignedObjectArray<b3Int2>& src, const b3Int2& value, int n, int offset);
47 void executeHost(b3AlignedObjectArray<int>& src, const int value, int n, int offset);
49 // void execute(b3OpenCLArray<b3Int4>& src, const b3Int4& value, int n, int offset = 0);