Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/Materials > API/Runtime/Engine/Materials/UMaterialExpressionSetLocal
- UMaterialExpression::GenerateHLSLStatements()
- UMaterialExpressionSetLocal::GenerateHLSLStatements()
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Public/Materials/MaterialExpressionSetLocal.h |
| Include | #include "Materials/MaterialExpressionSetLocal.h" |
| Source | /Engine/Source/Runtime/Engine/Private/Materials/MaterialExpressionHLSL.cpp |
virtual bool GenerateHLSLStatements
(
FMaterialHLSLGenerator & Generator,
UE::HLSLTree::FScope & Scope
) const
Remarks
A given UMaterial implementation should implement at least one of these methods in order to generate HLSL code It's valid to implement more than one, if the expression can be used in multiple ways. For example, a for-loop expression might generate a statement for the execution input, but also generate an expression to access the loop index These methods replace the Compile() method; once we switch over to the new system, Compile() will be removed