MCPcopy Create free account
hub / github.com/NVIDIAGameWorks/Blast / setUseGPUPhysics

Method setUseGPUPhysics

samples/SampleBase/core/SampleController.cpp:53–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51
52
53void SampleController::setUseGPUPhysics(bool useGPUPhysics)
54{
55 if (!getPhysXController().getGPUPhysicsAvailable())
56 {
57 useGPUPhysics = false;
58 }
59
60 if (getPhysXController().getUseGPUPhysics() == useGPUPhysics)
61 {
62 return;
63 }
64
65 int assetNum = getSceneController().releaseAll();
66
67 getBlastController().notifyPhysXControllerRelease();
68 getPhysXController().setUseGPUPhysics(useGPUPhysics);
69 getBlastController().reinitialize();
70
71 getRenderer().clearQueue();
72
73 getSceneController().spawnAsset(assetNum);
74}
75
76
77void SampleController::drawPhysXGpuUI()

Callers

nothing calls this directly

Calls 7

getUseGPUPhysicsMethod · 0.80
clearQueueMethod · 0.80
releaseAllMethod · 0.45
reinitializeMethod · 0.45
spawnAssetMethod · 0.45

Tested by

no test coverage detected