Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/Materials
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UMaterialExpression
- UMaterialExpressionCustomOutput
- UMaterialExpressionNeuralNetworkInput
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Classes/Materials/MaterialExpressionNeuralPostProcessNode.h |
| Include | #include "Materials/MaterialExpressionNeuralPostProcessNode.h" |
Syntax
UCLASS (MinimalAPI, CollapseCategories, HideCategories=Object)
class UMaterialExpressionNeuralNetworkInput : public UMaterialExpressionCustomOutput
Variables
| Type | Name | Description | |
|---|---|---|---|
| FExpressionInput | Coordinates | Coordinate to read values: Texture index (float4): Batch[ignored], StartChannel[int,0], ViewportUV in 0..1 range Buffer index (float4): Batch[int,0], StartChannel[int,0], WidthHeight[ViewportUV] in 0..1 range | |
| FExpressionInput | Input0 | First input node for neural post processing in post process material | |
| FExpressionInput | Mask | Input is ignored if Mask is zero. TODO: Used to optimize performance | |
| TEnumAsByte< ENeuralIndexType > | NeuralIndexType | Indexing type: write to the texture or buffer |
Constructors
| Type | Name | Description | |
|---|---|---|---|
UMaterialExpressionNeuralNetworkInput
(
const FObjectInitializer& ObjectInitializer |
Overridden from UMaterialExpressionCustomOutput
| Type | Name | Description | |
|---|---|---|---|
| UE::Shader::EValueType | GetCustomOutputType
(
int32 OutputIndex |
This is currently only needed by the new HLSL translator Should probably be merged with UMaterialExpression base interface, which already provides GetInputType/GetOutputType | |
| FString | |||
| int32 | Override to enable multiple outputs. |
Overridden from UMaterialExpression
| Type | Name | Description | |
|---|---|---|---|
| int32 | Compile
(
FMaterialCompiler* Compiler, |
Create the new shader code chunk needed for the Abs expression | |
| bool | GenerateHLSLExpression
(
FMaterialHLSLGenerator& Generator, |
||
| void | GetCaption
(
TArray< FString >& OutCaptions |
Returns the text to display on the material expression (in the material editor). | |
| uint32 | GetInputType
(
int32 InputIndex |