FShaderCompilerDefinitions

Container for shader compiler definitions.

Choose your operating system:

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,
    const FString& Value
)

Public function

void

 

SetDefine

(
    const TCHAR* Name,
    bool Value
)

Public function

void

 

SetDefine

(
    const TCHAR* Name,
    uint32 Value
)

Public function

void

 

SetDefine

(
    const TCHAR* Name,
    int32 Value
)

Public function

void

 

SetFloatDefine

(
    const TCHAR* Name,
    float Value
)

Works for float