FShaderCompilerEnvironment

The environment used to compile a shader.

Windows
MacOS
Linux

Inheritance Hierarchy

FRefCountedObject

FShaderCompilerEnvironment

References

Module

RenderCore

Header

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

Include

#include "ShaderCore.h"

Syntax

struct FShaderCompilerEnvironment : public FRefCountedObject

Remarks

The environment used to compile a shader.

Variables

Constructors

Name Description

Public function

FShaderCompilerEnvironment()

Default constructor.

Public function

FShaderCompilerEnvironment

(
    const FShaderCompilerDefinitions& ...
)

Initialization constructor.

Functions

Name Description

Public function Const

const TMap< ...

 

GetDefinitions()

Public function

void

 

Merge

(
    const FShaderCompilerEnvironment& ...
)

Public function

void

 

SetDefine

(
    const TCHAR* Name,
    const TCHAR* Value
)

Works for TCHAR e.g. SetDefine(TEXT("NAME"), TEXT("Test")); e.g. SetDefine(TEXT("NUM_SAMPLES"), 1); e.g. SetDefine(TEXT("DOIT"), true);

Public function

void

 

SetDefine

(
    const TCHAR* Name,
    uint32 Value
)

Public function

void

 

SetDefine

(
    const TCHAR* Name,
    int32 Value
)

Public function

void

 

SetDefine

(
    const TCHAR* Name,
    bool Value
)

Public function

void

 

SetDefine

(
    const TCHAR* Name,
    float Value
)

Public function

void

 

SetRenderTargetOutputFormat

(
    uint32 RenderTargetIndex,
    EPixelFormat PixelFormat
)

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