FMaterialShaderType::SetupCompileEnvironment

Sets up the environment used to compile an instance of this shader type.

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Public/MaterialShaderType.h

Include

#include "MaterialShaderType.h"

Source

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

Syntax

void SetupCompileEnvironment
(
    EShaderPlatform Platform,
    const FMaterialShaderParameters & MaterialParameters,
    int32 PermutationId,
    EShaderPermutationFlags Flags,
    FShaderCompilerEnvironment & Environment
) const

Remarks

Sets up the environment used to compile an instance of this shader type.

Parameters

Parameter

Description

Platform

Platform to compile for.

Environment

The shader compile environment that the function modifies.

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