Create a stringify example, instead of loading the .cl file from disk, include it as a string.

The kernel in the .cl file is also compiled by the native C++ cpu compiler, when using MiniCL.
When you want to debug the kernel using MiniCL, and want to put breakpoints, it is best to:

1) enabled the define #define DEBUG_MINICL_KERNELS 1 in Bullet/src/BulletMultiThreaded/MiniCL.cpp
2) temporarily remove the stringify lines in the .cl kernel, because it prevents the debugger from finding the right line.
This commit is contained in:
erwin.coumans
2010-06-25 22:21:18 +00:00
parent b884554a8f
commit 8bf91f735c
5 changed files with 69 additions and 30 deletions

View File

@@ -85,6 +85,10 @@ public:
{
return 1;
}
virtual btBarrier* createBarrier() { return 0;}
virtual btCriticalSection* createCriticalSection() { return 0;};
};