Add the GPU rigid body pipeline from https://github.com/erwincoumans/experiments as a Bullet 3.x preview for Bullet 2.80

This commit is contained in:
erwin.coumans
2012-03-05 00:54:32 +00:00
parent 73c4646b40
commit 571af41cf6
257 changed files with 55106 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
static const char* vectorAddCL= \
"\n"
"\n"
"__kernel void VectorAdd(__global const float8* a, __global const float8* b, __global float8* c, int numElements)\n"
"{\n"
" // get oct-float index into global data array\n"
" int iGID = get_global_id(0);\n"
" if (iGID>=numElements)\n"
" return;\n"
"\n"
" float8 aGID = a[iGID];\n"
" float8 bGID = b[iGID];\n"
"\n"
" float8 result = aGID + bGID;\n"
" // write back out to GMEM\n"
" c[iGID] = result;\n"
"}\n"
;