Navigation
Unreal Engine C++ API Reference > Runtime > Engine
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
Type | Name | Description | |
---|---|---|---|
![]() |
FAdditionalStaticMeshIndexBuffers * | AdditionalIndexBuffers | |
![]() |
FStaticMeshAreaWeightedSectionSampler | AreaWeightedSampler | Allows uniform random selection of mesh sections based on their area. |
![]() |
FStaticMeshSectionAreaWeightedTriangleSamplerArray | AreaWeightedSectionSamplers | Allows uniform random selection of triangles on each mesh section based on triangle area. |
![]() |
FStaticMeshSectionAreaWeightedTriangleSamplerBuffer | AreaWeightedSectionSamplersBuffer | Allows uniform random selection of triangles on GPU. |
![]() |
uint32: 1 | bBuffersInlined | True if vertex and index data are serialized inline |
![]() |
uint32: 1 | bHasColorVertexData | |
![]() |
uint32: 1 | bHasDepthOnlyIndices | True if the depth only index buffers contained data at init. |
![]() |
uint32: 1 | bHasRayTracingGeometry | True if the ray tracing resources struct contained data at init. |
![]() |
uint32: 1 | bHasReversedDepthOnlyIndices | True if the reversed index buffers contained data at init. |
![]() |
uint32: 1 | bHasReversedIndices | True if the reversed index buffers contained data at init. |
![]() |
uint32: 1 | bHasWireframeIndices | |
![]() |
uint32: 1 | bIsOptionalLOD | True if this LOD is optional. That is, vertex and index data may not be available |
![]() |
uint32 | BuffersSize | Sum of all vertex and index buffer sizes. Calculated in SerializeBuffers |
![]() |
FByteBulkData | BulkData | |
![]() |
FCardRepresentationData * | CardRepresentationData | Card Representation data associated with this mesh, null if not present. |
![]() |
FRawStaticIndexBuffer | DepthOnlyIndexBuffer | Index buffer resource for rendering in depth only passes. |
![]() |
uint32 | DepthOnlyNumTriangles | |
![]() |
FString | DerivedDataKey | |
![]() |
FDistanceFieldVolumeData * | DistanceFieldData | Distance field data associated with this mesh, null if not present. |
![]() |
FRawStaticIndexBuffer | IndexBuffer | Index buffer resource for rendering. |
![]() |
float | MaxDeviation | The maximum distance by which this LOD deviates from the base from which it was generated. |
![]() |
FRayTracingGeometry | RayTracingGeometry | Geometry for ray tracing. |
![]() |
FStaticMeshSectionArray | Sections | Sections for this LOD. |
![]() |
FByteBulkData | StreamingBulkData | |
![]() |
FStaticMeshVertexBuffers | VertexBuffers | |
![]() |
TArray< int32 > | WedgeMap | Map of wedge index to vertex index. Each LOD need one |
Constructors
Type | Name | Description | |
---|---|---|---|
![]() |
FStaticMeshLODResources
(
bool bAddRef |
Default constructor. |
Destructors
Type | Name | Description | |
---|---|---|---|
![]() |
Functions
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
SIZE_T | Get the estimated memory overhead of buffers marked as NeedsCPUAccess. | |
![]() ![]() |
int32 | ||
![]() ![]() |
int32 | Return the triangle count of this LOD. | |
![]() ![]() |
int32 | Return the number of vertices in this LOD. | |
![]() ![]() |
void | GetResourceSizeEx
(
FResourceSizeEx& CumulativeResourceSize |
|
![]() |
void | InitResources
(
UStaticMesh* Parent, |
Initializes all rendering resources. |
![]() |
void | Releases all rendering resources. | |
![]() |
void | ReleaseRHIForStreaming
(
TBatcher& Batcher |
|
![]() |
void | Serialize. |
Enums
Type | Name | Description | |
---|---|---|---|
![]() |
EClassDataStripFlag |