FStaticMeshLODResources

Syntax

struct FStaticMeshLODResources

Remarks

Rendering resources needed to render an individual static mesh LOD.

Variables

Name Description

Public variable

FRawStaticIndex ...

 

AdjacencyIndexBuffer

Index buffer containing adjacency information required by tessellation.

Public variable

FStaticMeshArea ...

 

AreaWeightedSampler

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

Public variable

TArray < FStatic ...

 

AreaWeightedSectionSamplers

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

Public variable

uint32 : 1

 

bHasAdjacencyInfo

True if the adjacency index buffer contained data at init.

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

FRawStaticIndex ...

 

DepthOnlyIndexBuffer

Index buffer resource for rendering in depth only passes.

Public variable

uint32

 

DepthOnlyNumTriangles

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

FRawStaticIndex ...

 

ReversedDepthOnlyIndexBuffer

Reversed depth only index buffer, used to prevent changing culling state between drawcalls.

Public variable

FRawStaticIndex ...

 

ReversedIndexBuffer

Reversed index buffer, used to prevent changing culling state between drawcalls.

Public variable

TArray < FStatic ...

 

Sections

Sections for this LOD.

Public variable

FStaticMeshVert ...

 

VertexBuffers

Public variable

FRawStaticIndex ...

 

WireframeIndexBuffer

Index buffer resource for rendering wireframe mode.

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.

References

Module

Engine

Header

Runtime/Engine/Public/StaticMeshResources.h