![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <MaterialShared.h>
Inheritance diagram for FMaterialShaderMap:Public Types | |
| using | Super = TShaderMap< FMaterialShaderMapContent, FShaderMapPointerTable > |
Static Public Member Functions | |
| static TRefCountPtr< FMaterialShaderMap > | FindId (const FMaterialShaderMapId &ShaderMapId, EShaderPlatform Platform) |
| static ENGINE_API void | SaveForRemoteRecompile (FArchive &Ar, const TMap< FString, TArray< TRefCountPtr< FMaterialShaderMap > > > &CompiledShaderMaps) |
| static ENGINE_API void | LoadForRemoteRecompile (FArchive &Ar, EShaderPlatform ShaderPlatform, TArray< UMaterialInterface * > &OutLoadedMaterials) |
Protected Member Functions | |
| void | PostFinalizeContent () override |
Protected Member Functions inherited from TShaderMap< FMaterialShaderMapContent, FShaderMapPointerTable > | |
| virtual const FTypeLayoutDesc & | GetContentTypeDesc () const final override |
| virtual FShaderMapPointerTable * | CreatePointerTable () const final override |
Protected Member Functions inherited from FShaderMapBase | |
| RENDERCORE_API | FShaderMapBase () |
| RENDERCORE_API void | AssignCopy (const FShaderMapBase &Source) |
| RENDERCORE_API void | InitResource () |
| RENDERCORE_API void | DestroyContent () |
Friends | |
| class | FShaderCompilingManager |
| class | UE::Cook::FODSCClientData |
| ENGINE_API void | DumpMaterialStats (EShaderPlatform Platform) |
The set of material shaders for a single material.
| FMaterialShaderMap::FMaterialShaderMap | ( | ) |
|
virtual |
|
inline |
|
inline |
| void FMaterialShaderMap::AddRef | ( | ) |
| FPSOPrecacheDataArray FMaterialShaderMap::CollectPSOPrecacheData | ( | const FMaterialPSOPrecacheParams & | PrecacheParams | ) |
Collect all possible PSO's which can be used with this material shader map for given parameters
|
inline |
| void FMaterialShaderMap::DumpDebugInfo | ( | FOutputDevice & | OutputDevice | ) | const |
|
virtual |
Reimplemented from FShaderMapBase.
|
static |
Finds the shader map for a material.
| ShaderMapId | - The static parameter set and other properties identifying the shader map |
| Platform | - The platform to lookup for |
Finds the shader map for a material.
| StaticParameterSet | - The static parameter set identifying the shader map |
| Platform | - The platform to lookup for |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
overridevirtual |
Builds a list of the shaders in a shader map. Key is FShaderType::TypeName
Implements FShaderMapBase.
| void FMaterialShaderMap::GetShaderList | ( | TMap< FShaderId, TShaderRef< FShader > > & | OutShaders | ) | const |
Builds a list of the shaders in a shader map.
|
inline |
| uint32 FMaterialShaderMap::GetShaderNum | ( | ) | const |
Number of Shaders in Shadermap
|
overridevirtual |
Builds a list of the shader pipelines in a shader map.
Implements FShaderMapBase.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Checks whether the material shader map is missing any shader types necessary for the given material.
| Material | - The material which is checked. |
|
inline |
|
static |
|
inline |
|
inline |
|
inline |
|
overrideprotectedvirtual |
Reimplemented from FShaderMapBase.
| void FMaterialShaderMap::Register | ( | EShaderPlatform | InShaderPlatform | ) |
Registers a material shader map in the global map so it can be used by materials.
| void FMaterialShaderMap::RegisterForODSC | ( | EShaderPlatform | InShaderPlatform | ) |
Registers a material shader map in the global map so it can be used by materials. Since the shader maps content can change this will overwrite entries in the global map.
| void FMaterialShaderMap::Release | ( | ) |
|
inline |
|
static |
Serializes a shader map to an archive (used with recompiling shaders for a remote console)
| bool FMaterialShaderMap::Serialize | ( | FShaderSerializeContext & | Ctx | ) |
Serializes the shader map.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
friend |
Dump material stats for a given platform.
| Platform | Platform to dump stats for. |
|
friend |
|
friend |