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

(
    FTypeLayoutDesc& InTypeLayout,
    const TCHAR* InName,
    const TCHAR* InSourceFilename,
    const TCHAR* InFunctionName,
    uint32 InFrequency,
    int32 InTotalPermutationCount,
    ConstructSerializedType InConstruct...,
    ConstructCompiledType InConstructCo...,
    ModifyCompilationEnvironmentType In...,
    ShouldCompilePermutationType InShou...,
    ValidateCompiledResultType InValida...,
    uint32 InTypeSize,
    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.

Typedefs

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