FStaticMeshLODResources

Rendering resources needed to render an individual static mesh LOD.

Windows
MacOS
Linux

Inheritance Hierarchy

FRefCountBase

FStaticMeshLODResources

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Public/StaticMeshResources.h

Include

#include "StaticMeshResources.h"

Syntax

struct FStaticMeshLODResources : public FRefCountBase

Remarks

Rendering resources needed to render an individual static mesh LOD. This structure is ref counted to allow the LOD streamer to evaluate the number of readers to it (readers that could access the CPU data). Because the stream out clears the CPU readable data, CPU code that samples it must ensure to only reference LODs above CurrentFirstLODIdx.

Variables

Name Description

Public variable

FAdditionalStat...

 

AdditionalIndexBuffers

Public variable

FStaticMeshArea...

 

AreaWeightedSampler

Allows uniform random selection of mesh sections based on their area.

Public variable

FStaticMeshSect...

 

AreaWeightedSectionSamplers

Allows uniform random selection of triangles on each mesh section based on triangle area.

Public variable

FStaticMeshSect...

 

AreaWeightedSectionSamplersBuffer

Allows uniform random selection of triangles on GPU.

Public variable

uint32: 1

 

bBuffersInlined

True if vertex and index data are serialized inline

Public variable

uint32: 1

 

bHasAdjacencyInfo

True if the adjacency index buffer contained data at init.

Public variable

uint32: 1

 

bHasColorVertexData

Public variable

uint32: 1

 

bHasDepthOnlyIndices

True if the depth only index buffers contained data at init.

Public variable

uint32: 1

 

bHasRayTracingGeometry

True if the ray tracing resources struct contained data at init.

Public variable

uint32: 1

 

bHasReversedDepthOnlyIndices

True if the reversed index buffers contained data at init.

Public variable

uint32: 1

 

bHasReversedIndices

True if the reversed index buffers contained data at init.

Public variable

uint32: 1

 

bHasWireframeIndices

Public variable

uint32: 1

 

bIsOptionalLOD

True if this LOD is optional. That is, vertex and index data may not be available

Public variable

uint32

 

BuffersSize

Sum of all vertex and index buffer sizes. Calculated in SerializeBuffers

Public variable

FByteBulkData

 

BulkData

Public variable

FRawStaticIndex...

 

DepthOnlyIndexBuffer

Index buffer resource for rendering in depth only passes.

Public variable

uint32

 

DepthOnlyNumTriangles

Public variable

FString

 

DerivedDataKey

Public variable

FDistanceFieldV...

 

DistanceFieldData

Distance field data associated with this mesh, null if not present.

Public variable

FRawStaticIndex...

 

IndexBuffer

Index buffer resource for rendering.

Public variable

float

 

MaxDeviation

The maximum distance by which this LOD deviates from the base from which it was generated.

Public variable

FRayTracingGeom...

 

RayTracingGeometry

Geometry for ray tracing.

Public variable

FStaticMeshSect...

 

Sections

Public variable

TChooseClass< &...

 

StreamingBulkData

Public variable

FStaticMeshVert...

 

VertexBuffers

Public variable

TArray< int32 >

 

WedgeMap

Map of wedge index to vertex index. Each LOD need one

Constructors

Name Description

Public function

FStaticMeshLODResources

(
    bool bAddRef
)

Default constructor.

Destructors

Name Description

Public function

~FStaticMeshLODResources()

Functions

Name Description

Public function Const

int32

 

GetNumTexCoords()

Public function Const

int32

 

GetNumTriangles()

Return the triangle count of this LOD.

Public function Const

int32

 

GetNumVertices()

Return the number of vertices in this LOD.

Public function Const

void

 

GetResourceSizeEx

(
    FResourceSizeEx& CumulativeResourc...
)

Public function

void

 

InitResources

(
    UStaticMesh* Parent
)

Initializes all rendering resources.

Public function

void

 

ReleaseResources()

Releases all rendering resources.

Public function

void

 

ReleaseRHIForStreaming

(
    TBatcher& Batcher
)

Public function

void

 

Serialize

(
    FArchive& Ar,
    UObject* Owner,
    int32 Idx
)

Serialize.

Enums

Name

Description

Private enum

EClassDataStripFlag

Typedefs

Name

Description

FStaticMeshSectionArray

Sections for this LOD.

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