29#ifndef PX_BVH_34_MIDPHASE_DESC_H
30#define PX_BVH_34_MIDPHASE_DESC_H
35#include "foundation/PxPreprocessor.h"
36#include "foundation/PxSimpleTypes.h"
115 if(numPrimsPerLeaf < 2 || numPrimsPerLeaf > 15)
Sorts an array of objects in ascending order, assuming that the predicate implements the < operator:
Definition PxBoxController.h:39
Desired build strategy for PxMeshMidPhase::eBVH34.
Definition PxBVH34MidphaseDesc.h:47
Enum
Definition PxBVH34MidphaseDesc.h:49
@ eSAH
SAH build strategy. Slower builds, slightly improved runtime performance in some cases.
Definition PxBVH34MidphaseDesc.h:52
@ eFAST
Fast build strategy. Fast build speed, good runtime performance in most cases. Recommended for runtim...
Definition PxBVH34MidphaseDesc.h:50
@ eDEFAULT
Default build strategy. Medium build speed, good runtime performance in all cases.
Definition PxBVH34MidphaseDesc.h:51
Structure describing parameters affecting BVH34 midphase mesh structure.
Definition PxBVH34MidphaseDesc.h:66
bool isValid() const
Returns true if the descriptor is valid.
Definition PxBVH34MidphaseDesc.h:113
PxU32 numPrimsPerLeaf
Mesh cooking hint for max primitives per leaf limit. Less primitives per leaf produces larger meshes ...
Definition PxBVH34MidphaseDesc.h:76
void setToDefault()
Desc initialization to default value.
Definition PxBVH34MidphaseDesc.h:102
bool quantized
Whether the tree should be quantized or not.
Definition PxBVH34MidphaseDesc.h:97
PxBVH34BuildStrategy::Enum buildStrategy
Desired build strategy for the BVH.
Definition PxBVH34MidphaseDesc.h:83