Bullet Collision Detection & Physics Library
btGpu3DGridBroadphaseSharedDefs.h
Go to the documentation of this file.
1 /*
2 Bullet Continuous Collision Detection and Physics Library, http://bulletphysics.org
3 Copyright (C) 2006, 2009 Sony Computer Entertainment Inc.
4 
5 This software is provided 'as-is', without any express or implied warranty.
6 In no event will the authors be held liable for any damages arising from the use of this software.
7 Permission is granted to anyone to use this software for any purpose,
8 including commercial applications, and to alter it and redistribute it freely,
9 subject to the following restrictions:
10 
11 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.
12 2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software.
13 3. This notice may not be removed or altered from any source distribution.
14 */
15 
16 //----------------------------------------------------------------------------------------
17 
18 // Shared definitions for GPU-based 3D Grid collision detection broadphase
19 
21 // Keep this file free from Bullet headers
22 // it is included into both CUDA and CPU code
24 
25 //----------------------------------------------------------------------------------------
26 
27 #ifndef BTGPU3DGRIDBROADPHASESHAREDDEFS_H
28 #define BTGPU3DGRIDBROADPHASESHAREDDEFS_H
29 
30 //----------------------------------------------------------------------------------------
31 
33 
34 //----------------------------------------------------------------------------------------
35 
36 extern "C"
37 {
38 
39 //----------------------------------------------------------------------------------------
40 
41 void BT_GPU_PREF(calcHashAABB)(bt3DGrid3F1U* pAABB, unsigned int* hash, unsigned int numBodies);
42 
43 void BT_GPU_PREF(findCellStart)(unsigned int* hash, unsigned int* cellStart, unsigned int numBodies, unsigned int numCells);
44 
45 void BT_GPU_PREF(findOverlappingPairs)(bt3DGrid3F1U* pAABB, unsigned int* pHash, unsigned int* pCellStart, unsigned int* pPairBuff, unsigned int* pPairBuffStartCurr, unsigned int numBodies);
46 
47 void BT_GPU_PREF(findPairsLarge)(bt3DGrid3F1U* pAABB, unsigned int* pHash, unsigned int* pCellStart, unsigned int* pPairBuff, unsigned int* pPairBuffStartCurr, unsigned int numBodies, unsigned int numLarge);
48 
49 void BT_GPU_PREF(computePairCacheChanges)(unsigned int* pPairBuff, unsigned int* pPairBuffStartCurr, unsigned int* pPairScan, bt3DGrid3F1U* pAABB, unsigned int numBodies);
50 
51 void BT_GPU_PREF(squeezeOverlappingPairBuff)(unsigned int* pPairBuff, unsigned int* pPairBuffStartCurr, unsigned int* pPairScan, unsigned int* pPairOut, bt3DGrid3F1U* pAABB, unsigned int numBodies);
52 
53 
54 //----------------------------------------------------------------------------------------
55 
56 } // extern "C"
57 
58 //----------------------------------------------------------------------------------------
59 
60 #endif // BTGPU3DGRIDBROADPHASESHAREDDEFS_H
61 
void BT_GPU_PREF() calcHashAABB(bt3DGrid3F1U *pAABB, unsigned int *hash, unsigned int numBodies)
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
void BT_GPU_PREF() findOverlappingPairs(bt3DGrid3F1U *pAABB, unsigned int *pHash, unsigned int *pCellStart, unsigned int *pPairBuff, unsigned int *pPairBuffStartCurr, unsigned int numBodies)
void BT_GPU_PREF() findPairsLarge(bt3DGrid3F1U *pAABB, unsigned int *pHash, unsigned int *pCellStart, unsigned int *pPairBuff, unsigned int *pPairBuffStartCurr, unsigned int numBodies, unsigned int numLarge)
void BT_GPU_PREF() computePairCacheChanges(unsigned int *pPairBuff, unsigned int *pPairBuffStartCurr, unsigned int *pPairScan, bt3DGrid3F1U *pAABB, unsigned int numBodies)
#define BT_GPU_PREF(func)
Definition: btGpuDefines.h:195
void BT_GPU_PREF() findCellStart(unsigned int *hash, unsigned int *cellStart, unsigned int numBodies, unsigned int numCells)
void BT_GPU_PREF() squeezeOverlappingPairBuff(unsigned int *pPairBuff, unsigned int *pPairBuffStartCurr, unsigned int *pPairScan, unsigned int *pPairOut, bt3DGrid3F1U *pAABB, unsigned int numBodies)