NvBlastActorSplit
Defined in lowlevel/NvBlast.h
-
uint32_t NvBlastActorSplit(NvBlastActorSplitEvent *result, NvBlastActor *actor, uint32_t newActorsMaxCount, void *scratch, NvBlastLog logFn, NvBlastTimers *timers)
Releases the oldActor and creates its children newActors if necessary.
- Parameters
result – [out] The list of deleted and created NvBlastActor objects.
actor – [in] The actor to split.
newActorsMaxCount – [in] Number of available NvBlastActor slots. In the worst case, one NvBlastActor may be created for every chunk in the asset.
scratch – [in] Scratch Memory used during processing. NvBlastActorGetRequiredScratchForSplit provides the necessary size.
logFn – [in] User-supplied message function (see NvBlastLog definition). May be NULL.
timers – [inout] If non-NULL this struct will be filled out with profiling information for the step, in profile build configurations
- Returns
1..n: new actors were created
- Returns
0: oldActor is unchanged