UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
MaterialIRToHLSLTranslator.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
6
7#if WITH_EDITOR
8
9// Used to translate a generated Material MIR module into the material HLSL shader.
11{
12 // The Material IR module, which contains the intermediate representation of the material graph.
13 const FMaterialIRModule* Module{};
14
15 // The material being translated.
16 const FMaterial* Material{};
17
18 // The set of static parameters assignements.
19 const FStaticParameterSet* StaticParameters{};
20
21 // The translation target platform.
22 const ITargetPlatform* TargetPlatform{};
23
24 // Executes the translation process, filling the material shader template parameters in OutParameters and configuring OutEnvironment for shader compilation.
25 // After this call, interpolate the MaterialTemplate shader with the list of parameters to get the final HLSL shader.
27};
28
29#endif // #if WITH_EDITOR
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
Definition MaterialShared.h:2058
Definition UnrealString.h.inl:34
void Run(FMassRuntimePipeline &RuntimePipeline, FProcessingContext &ProcessingContext)
Definition MassExecutor.cpp:25
Definition ShaderCore.h:544
Definition StaticParameterSet.h:462