Navigation
API > API/Runtime > API/Runtime/Engine
| Name | UMaterialExpressionFeatureLevelSwitch |
| Type | class |
| Header File | /Engine/Source/Runtime/Engine/Public/Materials/MaterialExpressionFeatureLevelSwitch.h |
| Include Path | #include "Materials/MaterialExpressionFeatureLevelSwitch.h" |
Syntax
UCLASS (CollapseCategories, HideCategories=Object, MinimalAPI)
class UMaterialExpressionFeatureLevelSwitch : public UMaterialExpression
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UMaterialExpression → UMaterialExpressionFeatureLevelSwitch
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Default | FExpressionInput | Default connection, used when a certain feature level doesn't have an override. | Materials/MaterialExpressionFeatureLevelSwitch.h | |
| Inputs | FExpressionInput | Materials/MaterialExpressionFeatureLevelSwitch.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
ERHIFeatureLevel::Type GetFeatureLevelToCompile
(
EShaderPlatform ShaderPlatform, |
Materials/MaterialExpressionFeatureLevelSwitch.h |
Overridden from UMaterialExpression
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void Build
(
MIR::FEmitter& Emitter |
Builds this expression's material IR. | Materials/MaterialExpressionFeatureLevelSwitch.h | |
virtual int32 Compile
(
FMaterialCompiler* Compiler, |
Create the new shader code chunk needed for the Abs expression | Materials/MaterialExpressionFeatureLevelSwitch.h | |
| Returns the text to display on the material expression (in the material editor). | Materials/MaterialExpressionFeatureLevelSwitch.h | ||
virtual FName GetInputName
(
int32 InputIndex |
Materials/MaterialExpressionFeatureLevelSwitch.h | ||
virtual EMaterialValueType GetInputValueType
(
int32 InputIndex |
Materials/MaterialExpressionFeatureLevelSwitch.h | ||
virtual EMaterialValueType GetOutputValueType
(
int32 OutputIndex |
Materials/MaterialExpressionFeatureLevelSwitch.h | ||
virtual bool IsInputConnectionRequired
(
int32 InputIndex |
Materials/MaterialExpressionFeatureLevelSwitch.h | ||
virtual bool IsResultMaterialAttributes
(
int32 OutputIndex |
Marks certain expression types as outputting material attributes. | Materials/MaterialExpressionFeatureLevelSwitch.h |
Overridden from UObject
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void Serialize
(
FStructuredArchive::FRecord Record |
Materials/MaterialExpressionFeatureLevelSwitch.h |