12 #ifndef PX_CUDA_CONTEXT_MANAGER_H
13 #define PX_CUDA_CONTEXT_MANAGER_H
26 class PxProfileZoneManager;
82 #if PX_SUPPORT_GPU_PHYSX
134 #if PX_SUPPORT_GPU_PHYSX
139 memoryBaseSize[i] = 0;
140 memoryPageSize[i] = 2 * 1024*1024;
182 virtual void acquireContext() = 0;
191 virtual void releaseContext() = 0;
214 virtual bool contextIsValid()
const = 0;
218 virtual bool supportsArchSM10()
const = 0;
219 virtual bool supportsArchSM11()
const = 0;
220 virtual bool supportsArchSM12()
const = 0;
221 virtual bool supportsArchSM13()
const = 0;
222 virtual bool supportsArchSM20()
const = 0;
223 virtual bool supportsArchSM30()
const = 0;
224 virtual bool supportsArchSM35()
const = 0;
225 virtual bool supportsArchSM50()
const = 0;
226 virtual bool supportsArchSM52()
const = 0;
227 virtual bool isIntegrated()
const = 0;
228 virtual bool canMapHostMemory()
const = 0;
229 virtual int getDriverVersion()
const = 0;
230 virtual size_t getDeviceTotalMemBytes()
const = 0;
231 virtual int getMultiprocessorCount()
const = 0;
232 virtual unsigned int getClockRate()
const = 0;
233 virtual int getSharedMemPerBlock()
const = 0;
234 virtual unsigned int getMaxThreadsPerBlock()
const = 0;
235 virtual const char *getDeviceName()
const = 0;
238 virtual void setUsingConcurrentStreams(
bool) = 0;
239 virtual bool getUsingConcurrentStreams()
const = 0;
282 virtual bool registerResourceInCudaD3D(
CUgraphicsResource &resource,
void *resourcePointer) = 0;
300 virtual int usingDedicatedPhysXGPU()
const = 0;
317 virtual void release() = 0;
338 mCtx->acquireContext();
346 mCtx->releaseContext();
357 #if PX_SUPPORT_GPU_PHYSX
375 void* PxLoadPhysxGPUModule(
const char* appGUID =
NULL);