FShaderCompilerEnvironment

The environment used to compile a shader.

Windows
MacOS
Linux

Inheritance Hierarchy

FRefCountedObject

FShaderCompilerEnvironment

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
)

References

Module

RenderCore

Header

Runtime/RenderCore/Public/ShaderCore.h

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback