Data Structures | |
| struct | NvFlowGridEmitCustomAllocParams |
| Necessary parameters/resources for custom grid block allocation. More... | |
| struct | NvFlowGridEmitCustomEmitLayerParams |
| Necessary parameters/resources for custom emit operations. More... | |
| struct | NvFlowGridEmitCustomEmitParams |
| Handle for requesting per layer emitter data. More... | |
Typedefs | |
| typedef void(* | NvFlowGridEmitCustomAllocFunc )(void *userdata, const NvFlowGridEmitCustomAllocParams *params) |
| typedef void(* | NvFlowGridEmitCustomEmitFunc )(void *userdata, NvFlowUint *dataFrontIdx, const NvFlowGridEmitCustomEmitParams *params) |
Functions | |
| void | NvFlowGridEmitCustomGetLayerParams (const NvFlowGridEmitCustomEmitParams *emitParams, NvFlowUint layerIdx, NvFlowGridEmitCustomEmitLayerParams *emitLayerParams) |
| void | NvFlowGridEmitCustomRegisterAllocFunc (NvFlowGrid *grid, NvFlowGridEmitCustomAllocFunc func, void *userdata) |
| void | NvFlowGridEmitCustomRegisterEmitFunc (NvFlowGrid *grid, NvFlowGridTextureChannel channel, NvFlowGridEmitCustomEmitFunc func, void *userdata) |
| typedef void(* NvFlowGridEmitCustomAllocFunc)(void *userdata, const NvFlowGridEmitCustomAllocParams *params) |
| typedef void(* NvFlowGridEmitCustomEmitFunc)(void *userdata, NvFlowUint *dataFrontIdx, const NvFlowGridEmitCustomEmitParams *params) |
| void NvFlowGridEmitCustomGetLayerParams | ( | const NvFlowGridEmitCustomEmitParams * | emitParams, | |
| NvFlowUint | layerIdx, | |||
| NvFlowGridEmitCustomEmitLayerParams * | emitLayerParams | |||
| ) |
Get per layer custom emit parameters, should only be called inside the custom emit callback.
| [in] | emitParams | The custom emit parameters. |
| [in] | layerIdx | The layerIdx to fetch, should be least than emitParams->numLayers. |
| [out] | emitLayerParams | Pointer to write parameters to. |
| void NvFlowGridEmitCustomRegisterAllocFunc | ( | NvFlowGrid * | grid, | |
| NvFlowGridEmitCustomAllocFunc | func, | |||
| void * | userdata | |||
| ) |
Sets custom allocation callback.
| [in] | grid | The grid to use the callback. |
| [in] | func | The callback function. |
| [in] | userdata | Pointer to provide to the callback function during execution. |
| void NvFlowGridEmitCustomRegisterEmitFunc | ( | NvFlowGrid * | grid, | |
| NvFlowGridTextureChannel | channel, | |||
| NvFlowGridEmitCustomEmitFunc | func, | |||
| void * | userdata | |||
| ) |
Sets custom emit callback for given simulation channel.
| [in] | grid | The Flow grid to use the callback. |
| [in] | channel | The simulation channel for this callback. |
| [in] | func | The callback function. |
| [in] | userdata | Pointer to provide to the callback function during execution. |