Language:
Discover
By Skill Level
By Category

FVertexFactoryType

Choose your OS:

Syntax

class FVertexFactoryType

Remarks

An object used to represent the type of a vertex factory.

Constructors

Name Description

Public function

FVertexFactoryType

(
    const TCHAR * InName,
    const TCHAR * InShaderFilename,
    bool bInUsedWithMaterials,
    bool bInSupportsStaticLighting,
    bool bInSupportsDynamicLighting,
    bool bInSupportsPrecisePrevWorldPos,
    bool bInSupportsPositionOnly,
    ConstructParametersType InConstruct...,
    ShouldCacheType InShouldCache,
    ModifyCompilationEnvironmentType In...,
    SupportsTessellationShadersType InS...
)

Minimal initialization constructor.

Destructors

Name Description

Public function Virtual

~FVertexFactoryType()

Functions

Name Description

Public function

SHADERCORE_A ...

 

AddReferencedUniformBufferIncludes

(
    FShaderCompilerEnvironment & OutEnv...,
    FString & OutSourceFilePrefix,
    EShaderPlatform Platform
)

Adds include statements for uniform buffers that this shader type references, and builds a prefix for the shader file with the include statements.

Public function

FVertexFacto ...

 

CreateShaderParameters

(
    EShaderFrequency ShaderFrequency
)

Public function

void

 

FlushShaderFileCache

(
    const TMap < FString , TArray < const ...
)

Public function

FName

 

GetFName()

Public function

int32

 

GetId()

Returns an int32 specific to this vertex factory type.

Public function

const TCHAR ...

 

GetName()

Accessors.

Public function Static

int32

 

GetNumVertexFactoryTypes()

Public function

const TMap < ...

 

GetReferencedUniformBufferStructsCache()

Public function

const FSeria ...

 

GetSerializationHistory

(
    EShaderFrequency Frequency
)

Public function

const TCHAR ...

 

GetShaderFilename()

Public function

SHADERCORE_A ...

 

GetSourceHash()

Calculates a Hash based on this vertex factory type's source code and includes

Public function Static

SHADERCORE_A ...

 

GetTypeList()

The global shader factory list.

Public function Static

SHADERCORE_A ...

 

GetVFByName

(
    const FString & VFName
)

Finds a FVertexFactoryType by name.

Public function Static

void

 

Initialize

(
    const TMap < FString , TArray < const ...
)

Initialize FVertexFactoryType static members, this must be called before any VF types are created.

Public function

bool

 

IsUsedWithMaterials()

Public function

void

 

ModifyCompilationEnvironment

(
    EShaderPlatform Platform,
    const FMaterial * Material,
    FShaderCompilerEnvironment & OutEnv...
)

Calls the function ptr for the shader type on the given environment

Public function

bool

 

ShouldCache

(
    EShaderPlatform Platform,
    const FMaterial * Material,
    const FShaderType * ShaderType
)

Should we cache the material's shadertype on this platform with this vertex factory?

Public function

bool

 

SupportsDynamicLighting()

Public function

bool

 

SupportsPositionOnly()

Public function

bool

 

SupportsPrecisePrevWorldPos()

Public function

bool

 

SupportsStaticLighting()

Public function

bool

 

SupportsTessellationShaders()

Does this vertex factory support tessellation shaders?

Public function Static

void

 

Uninitialize()

Uninitializes FVertexFactoryType cached data.

Typedefs

Constants

Name

Description

bInitializedSerializationHistory

Tracks whether serialization history for all shader types has been initialized.

NextHashIndex

============================================================================= VertexFactory.cpp: Vertex factory implementation

References

Module

ShaderCore

Header

Runtime/ShaderCore/Public/VertexFactory.h