Module |
|
Header |
/Engine/Source/Runtime/Engine/Public/MeshBatch.h |
Include |
#include "MeshBatch.h" |
struct FMeshBatch
A batch of mesh elements, all with the same material and vertex buffer
Name | Description | ||
---|---|---|---|
|
BatchHitProxyId |
The current hit proxy ID being rendered. |
|
|
uint32: 1 |
bCanApplyViewModeOverrides |
Whether view mode overrides can be applied to this mesh eg unlit, wireframe. |
|
uint32: 1 |
bDisableBackfaceCulling |
|
|
uint32: 1 |
bDitheredLODTransition |
Whether the mesh batch should apply dithered LOD. |
|
uint32: 1 |
bRenderToVirtualTexture |
Whether the mesh batch can be rendered to virtual textures. |
|
uint32: 1 |
bRequiresPerElementVisibility |
Whether the mesh batch needs VertexFactory->GetStaticBatchElementVisibility to be called each frame to determine which elements of the batch are visible. |
|
uint32: 1 |
bSelectable |
Whether the mesh batch can be selected through editor selection, aka hit proxies. |
|
uint32: 1 |
bUseAsOccluder |
|
|
uint32: 1 |
bUseForDepthPass |
|
|
uint32: 1 |
bUseForMaterial |
|
|
uint32: 1 |
bUseSelectionOutline |
Whether the batch should receive the selection outline. |
|
uint32: 1 |
bUseWireframeSelectionColoring |
Whether to treat the batch as selected in special viewmodes like wireframe. |
|
uint32: 1 |
bWireframe |
|
|
uint32: 1 |
CastShadow |
Pass feature relevance flags. |
|
uint32: 3 |
DepthPriorityGroup |
E.g. SDPG_World (default), SDPG_Foreground |
|
Elements |
||
|
const FLightCac... |
LCI |
Can be NULL |
|
LODIndex |
LOD index of the mesh, used for fading LOD transitions. |
|
|
const FMaterial... |
MaterialRenderProxy |
Material proxy for rendering, required. |
|
MeshIdInPrimitive |
Mesh Id in a primitive. Used for stable sorting of draws belonging to the same primitive. |
|
|
uint32: 1 |
ReverseCulling |
|
|
uint32: Runtim... |
RuntimeVirtualTextureMaterialType |
What virtual texture material type this mesh batch should be rendered with. |
|
SegmentIndex |
||
|
float |
TessellationDisablingShadowMapMeshSize |
This is the threshold that will be used to know if we should use this mesh batch or use one with no tessellation enabled |
|
uint32: PT_Num... |
Type |
E.g. PT_TriangleList(default), PT_LineList, .. |
|
const FVertexFa... |
VertexFactory |
Vertex factory for rendering, required. |
|
VisualizeHLODIndex |
Conceptual HLOD index used for the HLOD Coloration visualization. |
|
|
VisualizeLODIndex |
Conceptual LOD index used for the LOD Coloration visualization. |
Name | Description | |
---|---|---|
|
FMeshBatch() |
Default constructor. |
Name | Description | ||
---|---|---|---|
|
GetNumPrimitives() |
||
|
HasAnyDrawCalls() |
||
|
IsDecal ( |
Todo: can be optimized with a single function that returns multiple states (Translucent, Decal, Masked) |
|
|
IsDualBlend ( |
||
|
IsMasked ( |
||
|
IsTranslucent ( |
||
|
PreparePrimitiveUniformBuffer ( |
||
|
QuantizeLODIndex ( |
Converts from an int32 index into a int8 |
|
|
UseForHairStrands ( |