NvBlastExtProgramParams
Defined in extensions/shaders/NvBlastExtDamageShaders.h
Functions
Variables
damageDesc: array of damage descriptions
material: pointer to material
-
struct NvBlastExtProgramParams
Damage program params.
Custom user params to be passed in shader functions. This structure hints recommended parameters layout, but it doesn’t required to be this way.
The idea of this ‘hint’ is that damage parameters are basically 2 entities: material + damage description.
Material is something that describes an actor properties (e.g. mass, stiffness, fragility) which are not expected to be changed often.
Damage description is something that describes particular damage event (e.g. position, radius and force of explosion).
Also this damage program hints that there could be more than one damage event happening and processed per one shader call (for efficiency reasons). So different damage descriptions can be stacked and passed in one shader call (while material is kept the same obviously).
Public Functions
-
inline NvBlastExtProgramParams(const void *desc, const void *material_ = nullptr, NvBlastExtDamageAccelerator *accelerator_ = nullptr)
Public Members
-
const void *damageDesc
array of damage descriptions
-
const void *material
pointer to material
-
NvBlastExtDamageAccelerator *accelerator