FStaticMeshRenderData - All data needed to render a static mesh. 更多...
#include <StaticMeshResources.h>
Public 成员函数 | |
| ENGINE_API void | AllocateLODResources (int32 NumLODs) |
| Allocate LOD resources. | |
| void | ComputeUVDensities () |
| Update LOD-SECTION uv densities. | |
| ENGINE_API | FStaticMeshRenderData () |
| Default constructor. | |
| FORCEINLINE const FStaticMeshLODResources * | GetCurrentFirstLOD (int32 MinLODIdx) const |
| Return the current first LOD that can be used for rendering starting at MinLODIdx. 更多... | |
| FORCEINLINE int32 | GetCurrentFirstLODIdx (int32 MinLODIdx) const |
| Return the current first LODIdx that can be used. | |
| ENGINE_API int32 | GetFirstValidLODIdx (int32 MinLODIdx) const |
| Return first valid LOD index starting at MinLODIdx. | |
| int32 | GetNumNonOptionalLODs () const |
| Count the number of LODs that not optional and guarantied to be installed. 更多... | |
| int32 | GetNumNonStreamingLODs () const |
| Count the number of LODs that are inlined and not streamable. 更多... | |
| void | GetResourceSizeEx (FResourceSizeEx &CumulativeResourceSize) const |
| Compute the size of this resource. | |
| void | InitResources (ERHIFeatureLevel::Type InFeatureLevel, UStaticMesh *Owner) |
| Initialize the render resources. | |
| ENGINE_API void | ReleaseResources () |
| Releases the render resources. | |
| void | Serialize (FArchive &Ar, UStaticMesh *Owner, bool bCooked) |
| Serialization. | |
Public 属性 | |
| bool | bLODsShareStaticLighting |
| True if LODs share static lighting data. | |
| FBoxSphereBounds | Bounds |
| Bounds of the renderable mesh. | |
| bool | bReadyForStreaming |
| True if rhi resources are initialized | |
| FStaticMeshLODResourcesArray | LODResources |
| Per-LOD resources. 更多... | |
| FPerPlatformFloat | ScreenSize [MAX_STATIC_MESH_LODS] |
| Screen size to switch LODs | |
FStaticMeshRenderData - All data needed to render a static mesh.
|
inline |
Return the current first LOD that can be used for rendering starting at MinLODIdx.
This takes into account the streaming status from CurrentFirstLODIdx, and MinLODIdx is expected to be UStaticMesh::MinLOD, which is platform specific.
| int32 FStaticMeshRenderData::GetNumNonOptionalLODs | ( | ) | const |
Count the number of LODs that not optional and guarantied to be installed.
Starting from the last LOD and stopping at the first optional LOD.
| int32 FStaticMeshRenderData::GetNumNonStreamingLODs | ( | ) | const |
Count the number of LODs that are inlined and not streamable.
Starting from the last LOD and stopping at the first non inlined LOD.
| FStaticMeshLODResourcesArray FStaticMeshRenderData::LODResources |
Per-LOD resources.
For compatibility reasons, the FStaticMeshLODResources array are not referenced through TRefCountPtr. The LODResource still has a ref count of at least 1, see FStaticMeshLODResources() constructor.