Main Page Class List Class Members

# NvBlastExtProgramParams Struct Reference

`#include <NvBlastExtDamageShaders.h>`

List of all members.

## Public Member Functions
| NvBlastExtProgramParams (const void *desc, const void *material_=nullptr, NvBlastExtDamageAccelerator *accelerator_=nullptr)
## Public Attributes
NvBlastExtDamageAccelerator * | accelerator
const void * | damageDesc
| array of damage descriptions
const void * | material
| pointer to material

## Detailed Description

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. 1. Material is something that describes an actor properties (e.g. mass, stiffness, fragility) which are not expected to be changed often. 2. 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).

## Constructor & Destructor Documentation

NvBlastExtProgramParams::NvBlastExtProgramParams | ( | const void * | desc,
|  | const void * | material_ = `nullptr`,
|  | NvBlastExtDamageAccelerator * | accelerator_ = `nullptr` |
| ) |  |  | `[inline]`

## Member Data Documentation

NvBlastExtDamageAccelerator* NvBlastExtProgramParams::accelerator

const void* NvBlastExtProgramParams::damageDesc

array of damage descriptions

const void* NvBlastExtProgramParams::material

pointer to material

The documentation for this struct was generated from the following file:

- sdk/extensions/shaders/include/NvBlastExtDamageShaders.h