FShaderId

Uniquely identifies an [FShader](API\Runtime\RenderCore\FShader) instance.

Windows
MacOS
Linux

References

Module

RenderCore

Header

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

Include

#include "Shader.h"

Syntax

class FShaderId

Remarks

Uniquely identifies an FShader instance. Used to link FMaterialShaderMaps and FShaders on load.

Variables

Name Description

Public variable

FSHAHash

 

MaterialShaderMapHash

Hash of the material shader map Id, since this shader depends on the generated material code from that shader map.

Public variable

int32

 

PermutationId

Unique permutation identifier within the ShaderType.

Public variable

const FSerializ...

 

SerializationHistory

Used to detect changes to the shader serialization.

Public variable

const FShaderPi...

 

ShaderPipeline

Shader Pipeline linked to this shader, needed since a single shader might be used on different Pipelines.

Public variable

FShaderType ...

 

ShaderType

Shader type

Public variable

FSHAHash

 

SourceHash

Used to detect changes to the shader source files.

Public variable

FShaderTarget

 

Target

Shader platform and frequency.

Public variable

FVertexFactoryT...

 

VertexFactoryType

Vertex factory type that the shader was created for, This is needed in the Id since a single shader type will be compiled for multiple vertex factories within a material shader map.

Public variable

const FSerializ...

 

VFSerializationHistory

Used to detect changes to the vertex factory parameter class serialization, or NULL for global shaders.

Public variable

FSHAHash

 

VFSourceHash

Used to detect changes to the vertex factory source files.

Constructors

Name Description

Public function

FShaderId

(
    const FSerializationHistory& InSer...
)

Create a minimally initialized Id. Members will have to be assigned individually.

Public function

FShaderId

(
    const FSHAHash& InMaterialShaderMa...,
    const FShaderPipelineType* InS...,
    FVertexFactoryType* InVertexFa...,
    FShaderType* InShaderType,
    int32 PermutationId,
    FShaderTarget InTarget
)

Creates an Id for the given material, vertex factory, shader type and target.

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