Niagara data interface for ST Reactive Boids Query.
More...
#include <NiagaraDataInterfaceSTReactiveBoids.h>
|
void | SetData (int32 _numBoids, TRefCountPtr< FRDGPooledBuffer > _ReadPooled) |
virtual void | PostInitProperties () override |
virtual void | GetFunctions (TArray< FNiagaraFunctionSignature > &OutFunctions) override |
virtual bool | CanExecuteOnTarget (ENiagaraSimTarget Target) const override |
virtual void | BuildShaderParameters (FNiagaraShaderParametersBuilder &ShaderParametersBuilder) const override |
virtual void | SetShaderParameters (const FNiagaraDataInterfaceSetShaderParametersContext &Context) const override |
virtual bool | HasPreSimulateTick () const override |
virtual bool | PerInstanceTick (void *PerInstanceData, FNiagaraSystemInstance *SystemInstance, float DeltaSeconds) override |
virtual int32 | PerInstanceDataSize () const override |
virtual bool | InitPerInstanceData (void *PerInstanceData, FNiagaraSystemInstance *SystemInstance) override |
virtual void | DestroyPerInstanceData (void *PerInstanceData, FNiagaraSystemInstance *SystemInstance) override |
Niagara data interface for ST Reactive Boids Query.
This class provides access to the reactive boid data within the Niagara system. It includes functionality to manage shader parameters and execute on the GPU compute simulation target.
◆ BuildShaderParameters()
void UNiagaraDataInterfaceSTReactiveBoids::BuildShaderParameters |
( |
FNiagaraShaderParametersBuilder & | ShaderParametersBuilder | ) |
const |
|
overridevirtual |
Builds shader parameters for the interface.
- Parameters
-
ShaderParametersBuilder | The builder to add shader parameters to. |
◆ CanExecuteOnTarget()
virtual bool UNiagaraDataInterfaceSTReactiveBoids::CanExecuteOnTarget |
( |
ENiagaraSimTarget | Target | ) |
const |
|
inlineoverridevirtual |
Determines if the target simulation type can execute on this interface.
- Parameters
-
Target | The simulation target. |
- Returns
- true if the target is GPU compute simulation, false otherwise.
◆ DestroyPerInstanceData()
void UNiagaraDataInterfaceSTReactiveBoids::DestroyPerInstanceData |
( |
void * | PerInstanceData, |
|
|
FNiagaraSystemInstance * | SystemInstance ) |
|
overridevirtual |
Destroys per-instance data for this interface.
- Parameters
-
PerInstanceData | The per-instance data to destroy. |
SystemInstance | The Niagara system instance. |
◆ GetFunctions()
void UNiagaraDataInterfaceSTReactiveBoids::GetFunctions |
( |
TArray< FNiagaraFunctionSignature > & | OutFunctions | ) |
|
|
overridevirtual |
Retrieves the list of functions for this data interface.
- Parameters
-
OutFunctions | The array of function signatures to be populated. |
◆ HasPreSimulateTick()
virtual bool UNiagaraDataInterfaceSTReactiveBoids::HasPreSimulateTick |
( |
| ) |
const |
|
inlineoverridevirtual |
Determines if the interface has a pre-simulate tick.
- Returns
- true if it has a pre-simulate tick, false otherwise.
◆ InitPerInstanceData()
bool UNiagaraDataInterfaceSTReactiveBoids::InitPerInstanceData |
( |
void * | PerInstanceData, |
|
|
FNiagaraSystemInstance * | SystemInstance ) |
|
overridevirtual |
Initializes per-instance data for this interface.
- Parameters
-
PerInstanceData | The per-instance data to initialize. |
SystemInstance | The Niagara system instance. |
- Returns
- true if the data was successfully initialized, false otherwise.
◆ PerInstanceDataSize()
int32 UNiagaraDataInterfaceSTReactiveBoids::PerInstanceDataSize |
( |
| ) |
const |
|
overridevirtual |
Retrieves the size of per-instance data.
- Returns
- The size of the per-instance data in bytes.
◆ PerInstanceTick()
bool UNiagaraDataInterfaceSTReactiveBoids::PerInstanceTick |
( |
void * | PerInstanceData, |
|
|
FNiagaraSystemInstance * | SystemInstance, |
|
|
float | DeltaSeconds ) |
|
overridevirtual |
Executes per instance tick for this interface.
- Parameters
-
PerInstanceData | The per-instance data. |
SystemInstance | The Niagara system instance. |
DeltaSeconds | The delta time for the tick. |
- Returns
- true if the tick was successfully executed, false otherwise.
◆ PostInitProperties()
void UNiagaraDataInterfaceSTReactiveBoids::PostInitProperties |
( |
| ) |
|
|
overridevirtual |
Post initialization properties.
◆ SetData()
void UNiagaraDataInterfaceSTReactiveBoids::SetData |
( |
int32 | _numBoids, |
|
|
TRefCountPtr< FRDGPooledBuffer > | _ReadPooled ) |
|
inline |
Sets the boid data for the interface.
- Parameters
-
_numBoids | The number of boids. |
_ReadPooled | The pooled buffer for reading boid data. |
◆ SetShaderParameters()
void UNiagaraDataInterfaceSTReactiveBoids::SetShaderParameters |
( |
const FNiagaraDataInterfaceSetShaderParametersContext & | Context | ) |
const |
|
overridevirtual |
Sets the shader parameters for this interface.
- Parameters
-
Context | The context containing the shader parameters. |
The documentation for this class was generated from the following files:
- H:/Games/Unreal/Aaron/FunWithShaders/Plugins/ST_VJMaster/Source/ST_AudioVisualisation/Public/Niagara/DataInterfaces/NiagaraDataInterfaceSTReactiveBoids.h
- H:/Games/Unreal/Aaron/FunWithShaders/Plugins/ST_VJMaster/Source/ST_AudioVisualisation/Private/Niagara/DataInterfaces/NiagaraDataInterfaceSTReactiveBoids.cpp