FMeshBatchElement

A batch mesh element definition.

Choose your operating system:

Windows

macOS

Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Public/MeshBatch.h

Include

#include "MeshBatch.h"

Syntax

struct FMeshBatchElement

Remarks

A batch mesh element definition.

Variables

Name Description

Public variable

union FMeshBatc...

 

@956

Public variable

uint32

 

BaseVertexIndex

Public variable

uint32: 1

 

bIsInstanceRuns

Public variable

uint32: 1

 

bIsSplineProxy

Public variable

uint32: 1

 

bUserDataIsColorVertexBuffer

Public variable

FMeshBatchEleme...

 

DynamicIndexBuffer

Store dynamic index buffer This is used for objects whose triangles are dynamically sorted for a particular view (i.e., per-object order-independent-transparency)

Public variable

const FMeshBatc...

 

DynamicPrimitiveData

Source instance scene data and payload data for dynamic primitives.

Public variable

uint32

 

DynamicPrimitiveIndex

Public variable

uint32

 

DynamicPrimitiveInstanceSceneDataOffset

Public variable

uint32

 

FirstIndex

Public variable

const FIndexBuf...

 

IndexBuffer

Public variable

FRHIBuffer *...

 

IndirectArgsBuffer

Public variable

uint32

 

IndirectArgsOffset

Public variable

uint32: 4

 

InstancedLODIndex

Public variable

uint32: 4

 

InstancedLODRange

Public variable

uint32 *

 

InstanceRuns

If !bIsSplineProxy, Instance runs, where number of runs is specified by NumInstances.

Public variable

float

 

MaxScreenSize

Public variable

uint32

 

MaxVertexIndex

Public variable

float

 

MinScreenSize

Public variable

uint32

 

MinVertexIndex

Public variable

uint32

 

NumInstances

Number of instances to draw.

Public variable

uint32

 

NumPrimitives

When 0, IndirectArgsBuffer will be used.

Public variable

EPrimitiveIdMod...

 

PrimitiveIdMode

Assigned by renderer

Public variable

FRHIUniformBuff...

 

PrimitiveUniformBuffer

Primitive uniform buffer RHI Must be null for vertex factories that manually fetch primitive data from scene data, in which case FPrimitiveSceneProxy::UniformBuffer will be used.

Public variable

const TUniformB...

 

PrimitiveUniformBufferResource

Primitive uniform buffer to use for rendering, used when PrimitiveUniformBuffer is null.

Public variable

FSplineMeshScen...

 

SplineMeshSceneProxy

If bIsSplineProxy, a pointer back to the proxy

Public variable

const void *...

 

UserData

Public variable

int32

 

UserIndex

Public variable

void *

 

VertexFactoryUserData

Meaning depends on the vertex factory, e.g. FGPUSkinPassthroughVertexFactory: element index in FGPUSkinCache::CachedElements.

Public variable

int32: 8

 

VisualizeElementIndex

Conceptual element index used for debug viewmodes.

Constructors

Name Description

Public function

FMeshBatchElement()

Functions

Name Description

Public function Const

int32

 

GetNumPrimitives()