FMeshBatchElement

A batch mesh element definition.

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...

 

@738

Public variable

uint32

 

BaseVertexIndex

Public variable

uint8: 1

 

bIsInstancedMesh

Public variable

uint8: 1

 

bIsInstanceRuns

Public variable

uint8: 1

 

bIsSplineProxy

Public variable

uint8: 1

 

bUserDataIsColorVertexBuffer

Public variable

uint32: 24

 

DynamicPrimitiveShaderDataIndex

Assigned by renderer

Public variable

uint32

 

FirstIndex

Public variable

const FIndexBuf...

 

IndexBuffer

Public variable

FRHIVertexBuffe...

 

IndirectArgsBuffer

Public variable

uint32

 

IndirectArgsOffset

Public variable

uint8: 4

 

InstancedLODIndex

Public variable

uint8: 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

int8

 

VisualizeElementIndex

Conceptual element index used for debug viewmodes.

Constructors

Name Description

Public function

FMeshBatchElement()

Functions

Name Description

Public function Const

int32

 

GetNumPrimitives()

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