FInstancedStaticMeshVertexFactory

A vertex factory for instanced static meshes

Windows
MacOS
Linux

Inheritance Hierarchy

FRenderResource

FVertexFactory

FLocalVertexFactory

FInstancedStaticMeshVertexFactory

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/Engine/InstancedStaticMesh.h

Include

#include "Engine/InstancedStaticMesh.h"

Syntax

struct FInstancedStaticMeshVertexFactory : public FLocalVertexFactory

Remarks

A vertex factory for instanced static meshes

Constructors

Name Description

Public function

FInstancedStaticMeshVertexFactory

(
    ERHIFeatureLevel::Type InFeatureLev...
)

Functions

Name Description

Public function

void

 

Copy

(
    const FInstancedStaticMeshVertexFac...
)

Copy the data from another vertex factory

Public function Const

FRHIShaderRe...

 

GetInstanceCustomDataSRV()

Public function Const

FRHIShaderRe...

 

GetInstanceLightmapSRV()

Public function Const

FRHIShaderRe...

 

GetInstanceOriginSRV()

Public function Const

FRHIShaderRe...

 

GetInstanceTransformSRV()

Public function Const

FRHIUniformB...

 

GetUniformBuffer()

Public function Static

void

 

ModifyCompilationEnvironment

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

Modify compile environment to enable instancing

Public function Static

constexpr ui...

 

NumBitsForVisibilityMask()

Make sure we account for changes in the signature of GetStaticBatchElementVisibility()

Public function

void

 

SetData

(
    const FDataType& InData
)

An implementation of the interface used by TSynchronizedResource to update the resource with new data from the game thread.

Public function Static

bool

 

ShouldCompilePermutation

(
    const FVertexFactoryShaderPermutati...
)

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

Overridden from FVertexFactory

Name Description

Public function Virtual Const

FVertexFacto...

 

GetType()

Public function Virtual Const

bool

 

SupportsNullPixelShader()

Indicates whether the vertex factory supports a null pixel shader.

Overridden from FRenderResource

Name Description

Public function Virtual

void

 

InitRHI()

Initializes the RHI resources used by this resource.

Classes

Name

Description

Public struct

FDataType

Constants

Name

Description

StaticType

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