Bullet Collision Detection & Physics Library
Classes | Macros | Typedefs | Functions | Variables
btGpuDefines.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  int2
 
struct  uint2
 
class  int3
 
struct  uint3
 
struct  float4
 
struct  float3
 

Macros

#define BT_GPU___device__   inline
 
#define BT_GPU___devdata__
 
#define BT_GPU___constant__
 
#define BT_GPU_max(a, b)   ((a) > (b) ? (a) : (b))
 
#define BT_GPU_min(a, b)   ((a) < (b) ? (a) : (b))
 
#define BT_GPU_params   s3DGridBroadphaseParams
 
#define BT_GPU___mul24(a, b)   ((a)*(b))
 
#define BT_GPU___global__   inline
 
#define BT_GPU___shared__   static
 
#define BT_GPU___syncthreads()
 
#define CUDART_PI_F   SIMD_PI
 
#define BT_GPU_make_uint2(x, y)   bt3dGrid_make_uint2(x, y)
 
#define BT_GPU_make_int3(x, y, z)   bt3dGrid_make_int3(x, y, z)
 
#define BT_GPU_make_float3(x, y, z)   bt3dGrid_make_float3(x, y, z)
 
#define BT_GPU_make_float34(f)   bt3dGrid_make_float34(f)
 
#define BT_GPU_make_float31(x)   bt3dGrid_make_float31(x)
 
#define BT_GPU_make_float42(a, b)   bt3dGrid_make_float42(a, b)
 
#define BT_GPU_make_float44(a, b, c, d)   bt3dGrid_make_float44(a, b, c, d)
 
#define BT_GPU_dot(a, b)   bt3dGrid_dot(a,b)
 
#define BT_GPU_dot4(a, b)   bt3dGrid_dot4(a,b)
 
#define BT_GPU_cross(a, b)   bt3dGrid_cross(a,b)
 
#define BT_GPU_FETCH(a, b)   a[b]
 
#define BT_GPU_FETCH4(a, b)   a[b]
 
#define BT_GPU_PREF(func)   btGpu_##func
 
#define BT_GPU_SAFE_CALL(func)   func
 
#define BT_GPU_Memset   memset
 
#define BT_GPU_MemcpyToSymbol(a, b, c)   memcpy(&a, b, c)
 
#define BT_GPU_BindTexture(a, b, c, d)
 
#define BT_GPU_UnbindTexture(a)
 
#define BT_GPU_blockIdx   s_blockIdx
 
#define BT_GPU_blockDim   s_blockDim
 
#define BT_GPU_threadIdx   s_threadIdx
 
#define BT_GPU_EXECKERNEL(numb, numt, kfunc, args)   {s_blockDim.x=numt;for(int nb=0;nb<numb;nb++){s_blockIdx.x=nb;for(int nt=0;nt<numt;nt++){s_threadIdx.x=nt;kfunc args;}}}
 
#define BT_GPU_CHECK_ERROR(s)
 

Typedefs

typedef unsigned int uint
 

Functions

static uint2 bt3dGrid_make_uint2 (unsigned int x, unsigned int y)
 
static int3 bt3dGrid_make_int3 (int x, int y, int z)
 
static float3 bt3dGrid_make_float3 (float x, float y, float z)
 
static float3 bt3dGrid_make_float34 (float4 f)
 
static float3 bt3dGrid_make_float31 (float f)
 
static float4 bt3dGrid_make_float42 (float3 v, float f)
 
static float4 bt3dGrid_make_float44 (float a, float b, float c, float d)
 
int3 operator+ (int3 a, int3 b)
 
float4 operator+ (const float4 &a, const float4 &b)
 
float4 operator* (const float4 &a, float fact)
 
float4 operator* (float fact, float4 &a)
 
float4operator*= (float4 &a, float fact)
 
float4operator+= (float4 &a, const float4 &b)
 
float3 operator+ (const float3 &a, const float3 &b)
 
float3 operator- (const float3 &a, const float3 &b)
 
static float bt3dGrid_dot (float3 &a, float3 &b)
 
static float bt3dGrid_dot4 (float4 &a, float4 &b)
 
static float3 bt3dGrid_cross (const float3 &a, const float3 &b)
 
float3 operator* (const float3 &a, float fact)
 
float3operator+= (float3 &a, const float3 &b)
 
float3operator-= (float3 &a, const float3 &b)
 
float3operator*= (float3 &a, float fact)
 
float3 operator- (const float3 &v)
 

Variables

static uint2 s_blockIdx
 
static uint2 s_blockDim
 
static uint2 s_threadIdx
 

Macro Definition Documentation

#define BT_GPU___constant__

Definition at line 59 of file btGpuDefines.h.

#define BT_GPU___devdata__

Definition at line 58 of file btGpuDefines.h.

#define BT_GPU___device__   inline

Definition at line 57 of file btGpuDefines.h.

#define BT_GPU___global__   inline

Definition at line 64 of file btGpuDefines.h.

#define BT_GPU___mul24 (   a,
 
)    ((a)*(b))

Definition at line 63 of file btGpuDefines.h.

#define BT_GPU___shared__   static

Definition at line 65 of file btGpuDefines.h.

#define BT_GPU___syncthreads ( )

Definition at line 66 of file btGpuDefines.h.

#define BT_GPU_BindTexture (   a,
  b,
  c,
 
)

Definition at line 199 of file btGpuDefines.h.

#define BT_GPU_blockDim   s_blockDim

Definition at line 204 of file btGpuDefines.h.

#define BT_GPU_blockIdx   s_blockIdx

Definition at line 203 of file btGpuDefines.h.

#define BT_GPU_CHECK_ERROR (   s)

Definition at line 208 of file btGpuDefines.h.

#define BT_GPU_cross (   a,
 
)    bt3dGrid_cross(a,b)

Definition at line 163 of file btGpuDefines.h.

#define BT_GPU_dot (   a,
 
)    bt3dGrid_dot(a,b)

Definition at line 151 of file btGpuDefines.h.

#define BT_GPU_dot4 (   a,
 
)    bt3dGrid_dot4(a,b)

Definition at line 157 of file btGpuDefines.h.

#define BT_GPU_EXECKERNEL (   numb,
  numt,
  kfunc,
  args 
)    {s_blockDim.x=numt;for(int nb=0;nb<numb;nb++){s_blockIdx.x=nb;for(int nt=0;nt<numt;nt++){s_threadIdx.x=nt;kfunc args;}}}

Definition at line 206 of file btGpuDefines.h.

#define BT_GPU_FETCH (   a,
 
)    a[b]

Definition at line 193 of file btGpuDefines.h.

#define BT_GPU_FETCH4 (   a,
 
)    a[b]

Definition at line 194 of file btGpuDefines.h.

#define BT_GPU_make_float3 (   x,
  y,
 
)    bt3dGrid_make_float3(x, y, z)

Definition at line 85 of file btGpuDefines.h.

#define BT_GPU_make_float31 (   x)    bt3dGrid_make_float31(x)

Definition at line 97 of file btGpuDefines.h.

#define BT_GPU_make_float34 (   f)    bt3dGrid_make_float34(f)

Definition at line 91 of file btGpuDefines.h.

#define BT_GPU_make_float42 (   a,
 
)    bt3dGrid_make_float42(a, b)

Definition at line 103 of file btGpuDefines.h.

#define BT_GPU_make_float44 (   a,
  b,
  c,
 
)    bt3dGrid_make_float44(a, b, c, d)

Definition at line 109 of file btGpuDefines.h.

#define BT_GPU_make_int3 (   x,
  y,
 
)    bt3dGrid_make_int3(x, y, z)

Definition at line 79 of file btGpuDefines.h.

#define BT_GPU_make_uint2 (   x,
 
)    bt3dGrid_make_uint2(x, y)

Definition at line 73 of file btGpuDefines.h.

#define BT_GPU_max (   a,
 
)    ((a) > (b) ? (a) : (b))

Definition at line 60 of file btGpuDefines.h.

#define BT_GPU_MemcpyToSymbol (   a,
  b,
 
)    memcpy(&a, b, c)

Definition at line 198 of file btGpuDefines.h.

#define BT_GPU_Memset   memset

Definition at line 197 of file btGpuDefines.h.

#define BT_GPU_min (   a,
 
)    ((a) < (b) ? (a) : (b))

Definition at line 61 of file btGpuDefines.h.

#define BT_GPU_params   s3DGridBroadphaseParams

Definition at line 62 of file btGpuDefines.h.

#define BT_GPU_PREF (   func)    btGpu_##func

Definition at line 195 of file btGpuDefines.h.

#define BT_GPU_SAFE_CALL (   func)    func

Definition at line 196 of file btGpuDefines.h.

#define BT_GPU_threadIdx   s_threadIdx

Definition at line 205 of file btGpuDefines.h.

#define BT_GPU_UnbindTexture (   a)

Definition at line 200 of file btGpuDefines.h.

#define CUDART_PI_F   SIMD_PI

Definition at line 67 of file btGpuDefines.h.

Typedef Documentation

typedef unsigned int uint

Definition at line 24 of file btGpuDefines.h.

Function Documentation

static float3 bt3dGrid_cross ( const float3 a,
const float3 b 
)
inlinestatic

Definition at line 159 of file btGpuDefines.h.

static float bt3dGrid_dot ( float3 a,
float3 b 
)
inlinestatic

Definition at line 147 of file btGpuDefines.h.

static float bt3dGrid_dot4 ( float4 a,
float4 b 
)
inlinestatic

Definition at line 153 of file btGpuDefines.h.

static float3 bt3dGrid_make_float3 ( float  x,
float  y,
float  z 
)
inlinestatic

Definition at line 81 of file btGpuDefines.h.

static float3 bt3dGrid_make_float31 ( float  f)
inlinestatic

Definition at line 93 of file btGpuDefines.h.

static float3 bt3dGrid_make_float34 ( float4  f)
inlinestatic

Definition at line 87 of file btGpuDefines.h.

static float4 bt3dGrid_make_float42 ( float3  v,
float  f 
)
inlinestatic

Definition at line 99 of file btGpuDefines.h.

static float4 bt3dGrid_make_float44 ( float  a,
float  b,
float  c,
float  d 
)
inlinestatic

Definition at line 105 of file btGpuDefines.h.

static int3 bt3dGrid_make_int3 ( int  x,
int  y,
int  z 
)
inlinestatic

Definition at line 75 of file btGpuDefines.h.

static uint2 bt3dGrid_make_uint2 ( unsigned int  x,
unsigned int  y 
)
inlinestatic

Definition at line 69 of file btGpuDefines.h.

float4 operator* ( const float4 a,
float  fact 
)
inline

Definition at line 120 of file btGpuDefines.h.

float4 operator* ( float  fact,
float4 a 
)
inline

Definition at line 124 of file btGpuDefines.h.

float3 operator* ( const float3 a,
float  fact 
)
inline

Definition at line 166 of file btGpuDefines.h.

float4& operator*= ( float4 a,
float  fact 
)
inline

Definition at line 128 of file btGpuDefines.h.

float3& operator*= ( float3 a,
float  fact 
)
inline

Definition at line 182 of file btGpuDefines.h.

int3 operator+ ( int3  a,
int3  b 
)
inline

Definition at line 111 of file btGpuDefines.h.

float4 operator+ ( const float4 a,
const float4 b 
)
inline

Definition at line 116 of file btGpuDefines.h.

float3 operator+ ( const float3 a,
const float3 b 
)
inline

Definition at line 139 of file btGpuDefines.h.

float4& operator+= ( float4 a,
const float4 b 
)
inline

Definition at line 133 of file btGpuDefines.h.

float3& operator+= ( float3 a,
const float3 b 
)
inline

Definition at line 172 of file btGpuDefines.h.

float3 operator- ( const float3 a,
const float3 b 
)
inline

Definition at line 143 of file btGpuDefines.h.

float3 operator- ( const float3 v)
inline

Definition at line 187 of file btGpuDefines.h.

float3& operator-= ( float3 a,
const float3 b 
)
inline

Definition at line 177 of file btGpuDefines.h.

Variable Documentation

uint2 s_blockDim
static

Definition at line 202 of file btGpuDefines.h.

uint2 s_blockIdx
static

Definition at line 202 of file btGpuDefines.h.

uint2 s_threadIdx
static

Definition at line 202 of file btGpuDefines.h.