Navigation
API > API/Plugins > API/Plugins/Niagara
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UNiagaraMergeable
- UNiagaraDataInterfaceBase
- UNiagaraDataInterface
- UNiagaraDataInterfaceRWBase
- UNiagaraDataInterfaceRenderTarget2D
References
| Module | Niagara |
| Header | /Engine/Plugins/FX/Niagara/Source/Niagara/Classes/NiagaraDataInterfaceRenderTarget2D.h |
| Include | #include "NiagaraDataInterfaceRenderTarget2D.h" |
Syntax
UCLASS&40;EditInlineNew, Category&61;"Rendering", CollapseCategories,
Meta&61;&40;DisplayName&61;"Render Target 2D"&41;, Blueprintable, BlueprintType, MinimalAPI&41;
class UNiagaraDataInterfaceRenderTarget2D : public UNiagaraDataInterfaceRWBase
Variables
| Type | Name | Description | |
|---|---|---|---|
| uint8: 1 | bInheritUserParameterSettings | When enabled texture parameters (size / etc) are taken from the user provided render target. | |
| uint8: 1 | bOverrideFormat | ||
| uint8: 1 | bPreviewRenderTarget | ||
| ENiagaraMipMapGeneration | MipMapGeneration | Controls if and when we generate mips for the render target. | |
| ENiagaraMipMapGenerationType | MipMapGenerationType | ||
| TEnumAsByte< TextureFilter > | OverrideRenderTargetFilter | When enabled overrides the filter of the render target, otherwise uses the project default setting. | |
| TEnumAsByte< ETextureRenderTargetFormat > | OverrideRenderTargetFormat | When enabled overrides the format of the render target, otherwise uses the project default setting. | |
| FNiagaraUserParameterBinding | RenderTargetUserParameter | ||
| FIntPoint | Size | ||
| TMap< FNiagaraSystemInstanceID, FRenderTarget2DRWInstanceData_GameThread * > | SystemInstancesToProxyData_GT |
Constructors
| Type | Name | Description | |
|---|---|---|---|
UNiagaraDataInterfaceRenderTarget2D
(
const FObjectInitializer& ObjectInitializer |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | VMGetNumMipLevels
(
FVectorVMExternalFunctionContext& Context |
||
| void | VMGetSize
(
FVectorVMExternalFunctionContext& Context |
||
| void | VMSetFormat
(
FVectorVMExternalFunctionContext& Context |
||
| void | VMSetSize
(
FVectorVMExternalFunctionContext& Context |
Overridden from UNiagaraDataInterface
| Type | Name | Description | |
|---|---|---|---|
| bool | AppendCompileHash
(
FNiagaraCompileHashVisitor* InVisitor |
GPU sim functionality. | |
| bool | CanExecuteOnTarget
(
ENiagaraSimTarget Target |
VM functionality. | |
| bool | |||
| bool | |||
| bool | CopyToInternal
(
UNiagaraDataInterface* Destination |
||
| void | DestroyPerInstanceData
(
void* PerInstanceData, |
Destroys the per instance data for this interface. | |
| bool | Equals
(
const UNiagaraDataInterface* Other |
Determines if this DataInterface is the same as another. | |
| void | GetCanvasVariables
(
TArray< FNiagaraVariableBase >& OutVariables |
||
| void | GetExposedVariables
(
TArray< FNiagaraVariableBase >& OutVariables |
||
| bool | GetExposedVariableValue
(
const FNiagaraVariableBase& InVariable, |
||
| bool | GetFunctionHLSL
(
const FNiagaraDataInterfaceGPUParamInfo& ParamInfo, |
||
| void | GetFunctions
(
TArray< FNiagaraFunctionSignature >& OutFunctions |
Gets all the available functions for this data interface. | |
| void | GetParameterDefinitionHLSL
(
const FNiagaraDataInterfaceGPUParamInfo& ParamInfo, |
||
| void | GetVMExternalFunction
(
const FVMExternalFunctionBindingInfo& BindingInfo, |
Returns the delegate for the passed function signature. | |
| bool | |||
| bool | |||
| bool | InitPerInstanceData
(
void* PerInstanceData, |
Initializes the per instance data for this interface. | |
| int32 | Returns the size of the per instance data for this interface. | ||
| bool | PerInstanceTick
(
void* PerInstanceData, |
Ticks the per instance data for this interface, if it has any. | |
| bool | PerInstanceTickPostSimulate
(
void* PerInstanceData, |
||
| void | ProvidePerInstanceDataForRenderThread
(
void* DataForRenderThread, |
Subclasses that wish to work with GPU systems/emitters must implement this. | |
| bool | RenderVariableToCanvas
(
FNiagaraSystemInstanceID SystemInstanceID, |
||
| void | SetShaderParameters
(
const FNiagaraDataInterfaceSetShaderParametersContext& Context |
Set the shader parameters will only be called if the data interface provided shader parameters. | |
| bool | UpgradeFunctionCall
(
FNiagaraFunctionSignature& FunctionSignature |
Allows data interfaces the opportunity to rename / change the function signature and perform an upgrade. |
Overridden from UNiagaraDataInterfaceBase
| Type | Name | Description | |
|---|---|---|---|
| void | BuildShaderParameters
(
FNiagaraShaderParametersBuilder& ShaderParametersBuilder |
Override this method to provide parameters to the GPU (SRV / UAV / Constants / etc) The most common usage will be to provide a single structure which is nested with other parameters. |
Overridden from UObject
| Type | Name | Description | |
|---|---|---|---|
| void | Called after the C++ constructor and after the properties have been initialized, including those loaded from config. |
Constants
| Name | Description |
|---|---|
| ExposedRTVar |