FShaderCompilerDefinitions::SetDefine

Works for uint32 and bool e.g. OutEnvironment.SetDefine(TEXT("REALLY"), bReally); e.g. OutEnvironment.SetDefine(TEXT("NUM_SAMPLES"), NumSamples);

Windows
MacOS
Linux

References

Module

RenderCore

Header

/Engine/Source/Runtime/RenderCore/Public/ShaderCore.h

Include

#include "ShaderCore.h"

Syntax

void SetDefine
(
    const TCHAR * Name,
    uint32 Value
)

Remarks

Works for uint32 and bool e.g. OutEnvironment.SetDefine(TEXT("REALLY"), bReally); e.g. OutEnvironment.SetDefine(TEXT("NUM_SAMPLES"), NumSamples);

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