| 313 | } |
| 314 | |
| 315 | const MatrixF* RenderPassManager::allocSharedXform( SharedTransformType stt ) |
| 316 | { |
| 317 | AssertFatal(stt == View || stt == Projection, "Bad shared transform type"); |
| 318 | |
| 319 | // Enable this to simulate non-shared transform performance |
| 320 | //#define SIMULATE_NON_SHARED_TRANSFORMS |
| 321 | #ifdef SIMULATE_NON_SHARED_TRANSFORMS |
| 322 | return allocUniqueXform(stt == View ? mMatrixSet->getWorldToCamera() : mMatrixSet->getCameraToScreen()); |
| 323 | #else |
| 324 | return &(stt == View ? mMatrixSet->getWorldToCamera() : mMatrixSet->getCameraToScreen()); |
| 325 | #endif |
| 326 | } |
| 327 | |
| 328 | void RenderPassManager::assignSharedXform( SharedTransformType stt, const MatrixF &xfm ) |
| 329 | { |
no outgoing calls
no test coverage detected