Language:
Discover
By Skill Level
By Category

FShaderCompilerEnvironment

Choose your OS:

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 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

ShaderCore

Header

Runtime/ShaderCore/Public/ShaderCore.h