Navigation
API > API/Runtime > API/Runtime/Engine
Used to translate a generated Material MIR module into the material HLSL shader.
| Name | FMaterialIRToHLSLTranslation |
| Type | struct |
| Header File | /Engine/Source/Runtime/Engine/Public/Materials/MaterialIRToHLSLTranslator.h |
| Include Path | #include "Materials/MaterialIRToHLSLTranslator.h" |
Syntax
struct FMaterialIRToHLSLTranslation
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Material | const FMaterial * | The material being translated. | Materials/MaterialIRToHLSLTranslator.h | |
| Module | const FMaterialIRModule * | The Material IR module, which contains the intermediate representation of the material graph. | Materials/MaterialIRToHLSLTranslator.h | |
| StaticParameters | const FStaticParameterSet * | The set of static parameters assignements. | Materials/MaterialIRToHLSLTranslator.h | |
| TargetPlatform | const ITargetPlatform * | The translation target platform. | Materials/MaterialIRToHLSLTranslator.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void Run
(
TMap< FString, FString >& OutParameters, |
Executes the translation process, filling the material shader template parameters in OutParameters and configuring OutEnvironment for shader compilation. | Materials/MaterialIRToHLSLTranslator.h |