TWaterVertexFactory

Choose your operating system:

Windows

macOS

Linux

Inheritance Hierarchy

FRenderResource

FVertexFactory

TWaterVertexFactory

References

Module

Water

Header

/Engine/Plugins/Experimental/Water/Source/Runtime/Public/WaterVertexFactory.h

Include

#include "WaterVertexFactory.h"

Syntax

template<bool bWithWaterSelectionSupport>
class TWaterVertexFactory : public FVertexFactory

Variables

Constructors

Name Description

Public function

TWaterVertexFactory

(
    ERHIFeatureLevel::Type InFeatureLev...,
    int32 InNumQuadsPerSide,
    float InLODScale,
    FVector2D InMorphOrigin
)

Destructors

Name Description

Public function

~TWaterVertexFactory()

Functions

Name Description

Public function Const

const FUnifo...

 

GetWaterVertexFactoryUniformBuffer

(
    EWaterMeshRenderGroupType InRenderG...
)

Public function Static

void

 

ModifyCompilationEnvironment

(
    const FVertexFactoryShaderPermutati...,
    FShaderCompilerEnvironment& OutEnv...
)

Public function Static

bool

 

ShouldCompilePermutation

(
    const FVertexFactoryShaderPermutati...
)

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

Public function

FVertexFacto...

 

StaticType

(
    TEXT("TWaterVertexFactory    TEXT("/Plugin/Water/Private/WaterMe...,
    EVertexFactoryFlags::UsedWithMateri...,
    &ConstructVertexFactoryParameters< ...,
    &GetVertexFactoryParametersLayout< ...,
    &GetVertexFactoryParametersElementS...,
    TWaterVertexFactory< false >::Shoul...,
    TWaterVertexFactory< false >::Modif...,
    TWaterVertexFactory< false >::Valid...
)

Public function Static

void

 

ValidateCompiledResult

(
    const FVertexFactoryType* Type,
    EShaderPlatform Platform,
    const FShaderParameterMap& Paramet...,
    TArray< FString >& OutErrors
)

Overridden from FVertexFactory

Name Description

Public function Virtual Const

FVertexFacto...

 

GetType()

Public function Virtual Const

FVertexFacto...

 

GetType()

Overridden from FRenderResource

Name Description

Public function Virtual

void

 

InitRHI()

Constructs render resources for this vertex factory.

Public function Virtual

void

 

ReleaseRHI()

Release render resources for this vertex factory.

Typedefs

Name

Description

Super

Constants