FMaterialShaderMap::Compile

Compiles the shaders for a material and caches them in this shader map.

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Public/MaterialShared.h

Include

#include "MaterialShared.h"

Source

/Engine/Source/Runtime/Engine/Private/Materials/MaterialShader.cpp

Syntax

void Compile
(
    FMaterial * Material,
    const FMaterialShaderMapId & ShaderMapId,
    TRefCountPtr< FShaderCompilerEnvironment > MaterialEnvironment,
    const FMaterialCompilationOutput & InMaterialCompilationOutput,
    EShaderPlatform Platform,
    bool bSynchronousCompile
)

Remarks

Compiles the shaders for a material and caches them in this shader map. Compiles the shaders for a material and caches them in this shader map.

Parameters

Parameter

Description

Material

The material to compile shaders for.

ShaderMapId

the set of static parameters to compile for

Platform

The platform to compile to

Material

The material to compile shaders for.

InShaderMapId

the set of static parameters to compile for

Platform

The platform to compile to

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss