Static Public Member Functions | List of all members
PxPS3Config Class Reference

This class provides the interface to control memory budget and the number of SPUs used in a specific phase. More...

#include <PxPS3Config.h>

Static Public Member Functions

static PX_PHYSX_CORE_API bool initialize (PxU32 simSpuCount, PxU32 querySpuCount=0)
 Initialize the SDK's SPU usage. More...
 
static PX_PHYSX_CORE_API void setSceneParamInt (PxScene &scene, PxPS3ConfigParam::Enum param, PxU32 value)
 Sets the value of a parameter for the given scene. More...
 
static PX_PHYSX_CORE_API PxU32 getSceneParamInt (PxScene &scene, PxPS3ConfigParam::Enum param)
 Returns the current value of a parameter for the given scene. More...
 
static PX_PHYSX_CORE_API void getSpuMemBlockCounters (PxScene &scene, PxU32 &numNpContactStreamBlocks, PxU32 &numNpCacheBlocks, PxU32 &numDyFrictionBlocks, PxU32 &numDyConstraintBlocks)
 Returns a recommendation for SPU memory block settings. More...
 

Detailed Description

This class provides the interface to control memory budget and the number of SPUs used in a specific phase.

Member Function Documentation

static PX_PHYSX_CORE_API PxU32 PxPS3Config::getSceneParamInt ( PxScene scene,
PxPS3ConfigParam::Enum  param 
)
static

Returns the current value of a parameter for the given scene.

Parameters
[in]sceneA pointer to the PxScene.
[in]paramThe parameter whose value will be returned.
Returns
Returns current parameter value.
static PX_PHYSX_CORE_API void PxPS3Config::getSpuMemBlockCounters ( PxScene scene,
PxU32 numNpContactStreamBlocks,
PxU32 numNpCacheBlocks,
PxU32 numDyFrictionBlocks,
PxU32 numDyConstraintBlocks 
)
static

Returns a recommendation for SPU memory block settings.

Parameters
[in]sceneA pointer to the PxScene.
[out]numNpContactStreamBlocksThe minimal recommended value for eMEM_CONTACT_STREAM_BLOCKS used in narrow phase.
[out]numNpCacheBlocksThe minimal recommended value for eMEM_NP_CACHE_BLOCKS used in narrow phase.
[out]numDyFrictionBlocksThe minimal recommended value for eMEM_FRICTION_BLOCKS used in the solver.
[out]numDyConstraintBlocksThe minimal recommended value for eMEM_CONSTRAINT_BLOCKS used in the solver.
See Also
PxPS3ConfigParam
static PX_PHYSX_CORE_API bool PxPS3Config::initialize ( PxU32  simSpuCount,
PxU32  querySpuCount = 0 
)
static

Initialize the SDK's SPU usage.

By default the PhysX SDK will not use any SPU resources.

Use this method after the SDK has been created to enable SPU use, the counts provide an upper bound on the number of SPUs used for all SPU tasks.

The number of SPUs used per stage can be set on the scene after its creation with setSceneParamInt().

Parameters
[in]simSpuCountNumber of SPUs to use simultaneously for simulation tasks.
Returns
returns true if successful
Deprecated:
Parameters
[in]querySpuCountIgnored. See the Migration Guide, section "SPU batch queries" for more details about how to use SPU batched queries.
static PX_PHYSX_CORE_API void PxPS3Config::setSceneParamInt ( PxScene scene,
PxPS3ConfigParam::Enum  param,
PxU32  value 
)
static

Sets the value of a parameter for the given scene.

for eSPU parameters, value is the number of initialized SPUs to use in a phase. a value of 0 reverts the phase to PPU execution.

for eMEM parameters, value is the number of reserved 16kB memory blocks for SPU execution.

Parameters
[in]sceneA pointer to the PxScene.
[in]paramThe parameter to set.
[in]valueThe value to set the parameter to.

The documentation for this class was generated from the following file:


Copyright © 2008-2015 NVIDIA Corporation, 2701 San Tomas Expressway, Santa Clara, CA 95050 U.S.A. All rights reserved. www.nvidia.com