![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <StaticMeshResources.h>
Inheritance diagram for FStaticMeshLODResources:Public Member Functions | |
| ENGINE_API | FStaticMeshLODResources (bool bAddRef=true) |
| ENGINE_API | ~FStaticMeshLODResources () |
| template<typename TBatcher > | |
| void | ReleaseRHIForStreaming (TBatcher &Batcher) |
| void | InitResources (UStaticMesh *Parent, int32 LODIndex) |
| void | ReleaseResources () |
| void | Serialize (FArchive &Ar, UObject *Owner, int32 Idx) |
| ENGINE_API void | GetResourceSizeEx (FResourceSizeEx &CumulativeResourceSize) const |
| SIZE_T | GetCPUAccessMemoryOverhead () const |
| ENGINE_API int32 | GetNumTriangles () const |
| ENGINE_API int32 | GetNumVertices () const |
| ENGINE_API int32 | GetNumTexCoords () const |
Public Member Functions inherited from FRefCountBase | |
| FRefCountBase ()=default | |
| virtual | ~FRefCountBase ()=default |
| FRefCountBase (const FRefCountBase &Rhs)=delete | |
| FRefCountBase & | operator= (const FRefCountBase &Rhs)=delete |
| FReturnedRefCountValue | AddRef () const |
| uint32 | Release () const |
| uint32 | GetRefCount () const |
Friends | |
| class | FStaticMeshRenderData |
| class | FStaticMeshStreamIn |
| class | FStaticMeshStreamIn_IO |
| class | FStaticMeshStreamOut |
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.
Default constructor. Add a reference if not stored with a TRefCountPtr
| FStaticMeshLODResources::~FStaticMeshLODResources | ( | ) |
| SIZE_T FStaticMeshLODResources::GetCPUAccessMemoryOverhead | ( | ) | const |
Get the estimated memory overhead of buffers marked as NeedsCPUAccess.
| int32 FStaticMeshLODResources::GetNumTexCoords | ( | ) | const |
| int32 FStaticMeshLODResources::GetNumTriangles | ( | ) | const |
Return the triangle count of this LOD.
| int32 FStaticMeshLODResources::GetNumVertices | ( | ) | const |
Return the number of vertices in this LOD.
| void FStaticMeshLODResources::GetResourceSizeEx | ( | FResourceSizeEx & | CumulativeResourceSize | ) | const |
| void FStaticMeshLODResources::InitResources | ( | UStaticMesh * | Parent, |
| int32 | LODIndex | ||
| ) |
Initializes all rendering resources.
| void FStaticMeshLODResources::ReleaseResources | ( | ) |
Releases all rendering resources.
|
friend |
|
friend |
|
friend |
|
friend |
| FAdditionalStaticMeshIndexBuffers* FStaticMeshLODResources::AdditionalIndexBuffers = nullptr |
| FStaticMeshAreaWeightedSectionSampler FStaticMeshLODResources::AreaWeightedSampler |
Allows uniform random selection of mesh sections based on their area.
| FStaticMeshSectionAreaWeightedTriangleSamplerArray FStaticMeshLODResources::AreaWeightedSectionSamplers |
Allows uniform random selection of triangles on each mesh section based on triangle area.
| FStaticMeshSectionAreaWeightedTriangleSamplerBuffer FStaticMeshLODResources::AreaWeightedSectionSamplersBuffer |
Allows uniform random selection of triangles on GPU. It is not cooked and serialised but created at runtime from AreaWeightedSectionSamplers when it is available and static mesh bSupportGpuUniformlyDistributedSampling=true
| uint32 FStaticMeshLODResources::bBuffersInlined |
True if vertex and index data are serialized inline
| uint32 FStaticMeshLODResources::bHasColorVertexData |
| uint32 FStaticMeshLODResources::bHasDepthOnlyIndices |
True if the depth only index buffers contained data at init. Needed as it will not be available to the CPU afterwards.
| uint32 FStaticMeshLODResources::bHasReversedDepthOnlyIndices |
True if the reversed index buffers contained data at init. Needed as it will not be available to the CPU afterwards.
| uint32 FStaticMeshLODResources::bHasReversedIndices |
True if the reversed index buffers contained data at init. Needed as it will not be available to the CPU afterwards.
| uint32 FStaticMeshLODResources::bHasWireframeIndices |
| uint32 FStaticMeshLODResources::bIsOptionalLOD |
True if this LOD is optional. That is, vertex and index data may not be available
| uint32 FStaticMeshLODResources::BuffersSize |
Sum of all vertex and index buffer sizes. Calculated in SerializeBuffers
| class FCardRepresentationData* FStaticMeshLODResources::CardRepresentationData |
Card Representation data associated with this mesh, null if not present.
| FRawStaticIndexBuffer FStaticMeshLODResources::DepthOnlyIndexBuffer |
Index buffer resource for rendering in depth only passes.
| uint32 FStaticMeshLODResources::DepthOnlyNumTriangles |
| class FDistanceFieldVolumeData* FStaticMeshLODResources::DistanceFieldData = nullptr |
Distance field data associated with this mesh, null if not present.
| FRawStaticIndexBuffer FStaticMeshLODResources::IndexBuffer |
Index buffer resource for rendering.
| float FStaticMeshLODResources::MaxDeviation |
The maximum distance by which this LOD deviates from the base from which it was generated.
| FRayTracingGeometry* FStaticMeshLODResources::RayTracingGeometry = nullptr |
Geometry for ray tracing.
| FStaticMeshSectionArray FStaticMeshLODResources::Sections |
Sections for this LOD.
| FBoxSphereBounds FStaticMeshLODResources::SourceMeshBounds { ForceInit } |
The bounds of the source mesh data for this LOD
| FByteBulkData FStaticMeshLODResources::StreamingBulkData |
| FStaticMeshVertexBuffers FStaticMeshLODResources::VertexBuffers |