FStaticMeshLODResources

Rendering resources needed to render an individual static mesh LOD.

Windows
MacOS
Linux

References

Module

Engine

Header

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

Include

#include "StaticMeshResources.h"

Syntax

struct FStaticMeshLODResources

Remarks

Rendering resources needed to render an individual static mesh LOD.

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

 

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

uint32

 

BulkDataSize

Size of serialized buffer data in bytes

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

uint32

 

OffsetInFile

Offset in the .bulk file if this LOD is streamed

Public variable

TArray< FStatic...

 

Sections

Sections for this LOD.

Public variable

FStaticMeshVert...

 

VertexBuffers

Constructors

Name Description

Public function

FStaticMeshLODResources()

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

void

 

InitResources

(
    UStaticMesh* Parent
)

Initializes all rendering resources.

Public function

void

 

ReleaseResources()

Releases all rendering resources.

Public function

void

 

Serialize

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

Serialize.

Enums

Name

Description

Private enum

EClassDataStripFlag

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