Navigation
Unreal Engine C++ API Reference > Runtime > Engine > Materials
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UMaterialExpression
- UMaterialExpressionShaderStageSwitch
References
Module | Engine |
Header | /Engine/Source/Runtime/Engine/Classes/Materials/MaterialExpressionShaderStageSwitch.h |
Include | #include "Materials/MaterialExpressionShaderStageSwitch.h" |
Syntax
class UMaterialExpressionShaderStageSwitch : public UMaterialExpression
Variables
Type | Name | Description | |
---|---|---|---|
![]() |
FExpressionInput | PixelShader | |
![]() |
FExpressionInput | VertexShader |
Constructors
Type | Name | Description | |
---|---|---|---|
![]() |
UMaterialExpressionShaderStageSwitch
(
const FObjectInitializer& ObjectInitializer |
Functions
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
bool | ShouldUsePixelShaderInput
(
EShaderFrequency InShaderFrequency |
Overridden from UMaterialExpression
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
int32 | Compile
(
FMaterialCompiler* Compiler, |
Create the new shader code chunk needed for the Abs expression |
![]() ![]() |
void | GatherStrataMaterialInfo
(
FStrataMaterialInfo& StrataMaterialInfo, |
Recursively parse nodes outputing strata material in order to gather all the possible shading models used in a material graph output a Strata material. |
![]() ![]() ![]() |
bool | GenerateHLSLExpression
(
FMaterialHLSLGenerator& Generator, |
|
![]() ![]() ![]() |
void | GetCaption
(
TArray< FString >& OutCaptions |
Returns the text to display on the material expression (in the material editor). |
![]() ![]() |
void | GetExpressionToolTip
(
TArray< FString >& OutToolTip |
Get a tooltip for the expression itself. |
![]() ![]() ![]() |
FText | GetKeywords () |
Returns the keywords that should be used when searching for this expression |
![]() ![]() |
bool | IsResultStrataMaterial
(
int32 OutputIndex |
Marks certain expression types as outputting Strata material. |
![]() ![]() |
FStrataOperator * | StrataGenerateMaterialTopologyTree
(
FMaterialCompiler* Compiler, |
A starta material is a tree with FrontMateiral being its root and BSDF being leaves, with operators in the middle. |