| 51 | |
| 52 | |
| 53 | void 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 | |
| 77 | void SampleController::drawPhysXGpuUI() |
nothing calls this directly
no test coverage detected