FShaderCompilerDefinitions

Container for shader compiler definitions.

Windows
MacOS
Linux

References

Module

RenderCore

Header

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

Include

#include "ShaderCore.h"

Syntax

class FShaderCompilerDefinitions

Remarks

Container for shader compiler definitions.

Constructors

Name Description

Public function

FShaderCompilerDefinitions()

Functions

Name Description

Public function Const

const TMap< ...

 

GetDefinitionMap()

Public function

void

 

Merge

(
    const FShaderCompilerDefinitions& ...
)

Public function

void

 

SetDefine

(
    const TCHAR* Name,
    const TCHAR* Value
)

Works for TCHAR e.g. SetDefine(TEXT("NUM_SAMPLES"), TEXT("1"));

Public function

void

 

SetDefine

(
    const TCHAR* Name,
    uint32 Value
)

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

Public function

void

 

SetDefine

(
    const TCHAR* Name,
    int32 Value
)

Public function

void

 

SetFloatDefine

(
    const TCHAR* Name,
    float Value
)

Works for float

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