FGlobalShaderType

A shader meta type for the simplest shaders; shaders which are not material or vertex factory linked.

Windows
MacOS
Linux

Inheritance Hierarchy

FShaderType

FGlobalShaderType

References

Module

RenderCore

Header

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

Include

#include "GlobalShader.h"

Syntax

class FGlobalShaderType : public FShaderType

Remarks

A shader meta type for the simplest shaders; shaders which are not material or vertex factory linked. There should only a single instance of each simple shader type.

Constructors

Name Description

Public function

FGlobalShaderType

(
    const TCHAR* InName,
    const TCHAR* InSourceFilename,
    const TCHAR* InFunctionName,
    uint32 InFrequency,
    int32 InTotalPermutationCount,
    ConstructSerializedType InConstruct...,
    ConstructCompiledType InConstructCo...,
    ModifyCompilationEnvironmentType In...,
    ShouldCompilePermutationType InShou...,
    ValidateCompiledResultType InValida...,
    GetStreamOutElementsType InGetStrea...,
    const FShaderParametersMetadata...
)

Functions

Name Description

Public function

void

 

SetupCompileEnvironment

(
    EShaderPlatform Platform,
    int32 PermutationId,
    FShaderCompilerEnvironment& Enviro...
)

Sets up the environment used to compile an instance of this shader type.

Public function Const

bool

 

ShouldCompilePermutation

(
    EShaderPlatform Platform,
    int32 PermutationId
)

Checks if the shader type should be cached for a particular platform.

Public function Const

bool

 

ValidateCompiledResult

(
    EShaderPlatform Platform,
    const FShaderParameterMap& Paramet...,
    TArray< FString >& OutError
)

Checks if the shader type should pass compilation for a particular set of parameters.

Typedefs

Select Skin
Light
Dark

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