| FRefCountBase
|
Module |
|
Header |
/Engine/Source/Runtime/Engine/Public/StaticMeshResources.h |
Include |
#include "StaticMeshResources.h" |
struct FStaticMeshLODResources : public FRefCountBase
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.
Name | Description | ||
---|---|---|---|
|
AdditionalIndexBuffers |
||
|
AreaWeightedSampler |
Allows uniform random selection of mesh sections based on their area. |
|
|
AreaWeightedSectionSamplers |
Allows uniform random selection of triangles on each mesh section based on triangle area. |
|
|
AreaWeightedSectionSamplersBuffer |
Allows uniform random selection of triangles on GPU. |
|
|
uint32: 1 |
bBuffersInlined |
True if vertex and index data are serialized inline |
|
uint32: 1 |
bHasAdjacencyInfo |
True if the adjacency index buffer contained data at init. |
|
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 |
|
BuffersSize |
Sum of all vertex and index buffer sizes. Calculated in SerializeBuffers |
|
|
BulkData |
||
|
DepthOnlyIndexBuffer |
Index buffer resource for rendering in depth only passes. |
|
|
DepthOnlyNumTriangles |
||
|
DerivedDataKey |
||
|
DistanceFieldData |
Distance field data associated with this mesh, null if not present. |
|
|
IndexBuffer |
Index buffer resource for rendering. |
|
|
float |
MaxDeviation |
The maximum distance by which this LOD deviates from the base from which it was generated. |
|
RayTracingGeometry |
Geometry for ray tracing. |
|
|
Sections |
||
|
TChooseClass< &... |
StreamingBulkData |
|
|
VertexBuffers |
||
|
WedgeMap |
Map of wedge index to vertex index. Each LOD need one |
Name | Description | |
---|---|---|
|
FStaticMeshLODResources ( |
Default constructor. |
Name | Description | |
---|---|---|
|
~FStaticMeshLODResources() |
Name | Description | ||
---|---|---|---|
|
GetNumTexCoords() |
||
|
GetNumTriangles() |
Return the triangle count of this LOD. |
|
|
GetNumVertices() |
Return the number of vertices in this LOD. |
|
|
GetResourceSizeEx ( |
||
|
InitResources ( |
Initializes all rendering resources. |
|
|
ReleaseResources() |
Releases all rendering resources. |
|
|
ReleaseRHIForStreaming ( |
||
|
Serialize |
Serialize. |
Name |
Description |
|
---|---|---|
|
EClassDataStripFlag |
Name |
Description |
---|---|
FStaticMeshSectionArray |
Sections for this LOD. |