Bullet Collision Detection & Physics Library
MiniCLTask.h
Go to the documentation of this file.
1 /*
2 Bullet Continuous Collision Detection and Physics Library, Copyright (c) 2007 Erwin Coumans
3 
4 This software is provided 'as-is', without any express or implied warranty.
5 In no event will the authors be held liable for any damages arising from the use of this software.
6 Permission is granted to anyone to use this software for any purpose,
7 including commercial applications, and to alter it and redistribute it freely,
8 subject to the following restrictions:
9 
10 1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required.
11 2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software.
12 3. This notice may not be removed or altered from any source distribution.
13 
14 */
15 
16 #ifndef MINICL__TASK_H
17 #define MINICL__TASK_H
18 
20 #include "LinearMath/btScalar.h"
21 
23 
24 
25 #define MINICL_MAX_ARGLENGTH (sizeof(void*))
26 #define MINI_CL_MAX_ARG 16
27 #define MINI_CL_MAX_KERNEL_NAME 256
28 
29 struct MiniCLKernel;
30 
32 {
34 
36  {
37  for (int i=0;i<MINI_CL_MAX_ARG;i++)
38  {
39  m_argSizes[i]=0;
40  }
41  }
42 
44 
47 
49 
52 };
53 
55 
56 
57 void processMiniCLTask(void* userPtr, void* lsMemory);
59 
60 
61 #endif //MINICL__TASK_H
62 
int m_argSizes[MINI_CL_MAX_ARG]
int gMiniCLNumOutstandingTasks
Definition: MiniCLTask.h:54
MiniCLKernel * m_kernel
Definition: MiniCLTask.h:48
void processMiniCLTask(void *userPtr, void *lsMemory)
Definition: MiniCLTask.cpp:41
void * createMiniCLLocalStoreMemory()
Definition: MiniCLTask.cpp:69
unsigned int uint32_t
#define ATTRIBUTE_ALIGNED16(a)
Definition: btScalar.h:59
#define BT_DECLARE_ALIGNED_ALLOCATOR()
Definition: btScalar.h:357
uint32_t m_firstWorkUnit
Definition: MiniCLTask.h:45
void * m_argData[MINI_CL_MAX_ARG]
uint32_t m_taskId
Definition: MiniCLTask.h:43
uint32_t m_lastWorkUnit
Definition: MiniCLTask.h:46
#define MINI_CL_MAX_ARG
Definition: MiniCLTask.h:26