[dali_2.3.21] Merge branch 'devel/master'
[platform/core/uifw/dali-toolkit.git] / dali-physics / third-party / bullet3 / src / Bullet3OpenCL / RigidBody / kernels / updateAabbsKernel.cl
1
2
3 #include "Bullet3Collision/NarrowPhaseCollision/shared/b3UpdateAabbs.h"
4
5
6 __kernel void initializeGpuAabbsFull(  const int numNodes, __global b3RigidBodyData_t* gBodies,__global b3Collidable_t* collidables, __global b3Aabb_t* plocalShapeAABB, __global b3Aabb_t* pAABB)
7 {
8         int nodeID = get_global_id(0);
9         if( nodeID < numNodes )
10         {
11                 b3ComputeWorldAabb(nodeID, gBodies, collidables, plocalShapeAABB,pAABB);
12         }
13 }
14
15 __kernel void clearOverlappingPairsKernel(  __global int4* pairs, int numPairs)
16 {
17         int pairId = get_global_id(0);
18         if( pairId< numPairs )
19         {
20                 pairs[pairId].z = 0xffffffff;
21         }
22 }