engine
 
载入中...
搜索中...
未找到
Public 类型 | Public 成员函数 | Public 属性 | 友元 | 所有成员列表
FStaticMeshLODResources结构体 参考

Rendering resources needed to render an individual static mesh LOD. 更多...

#include <StaticMeshResources.h>

+ 类 FStaticMeshLODResources 继承关系图:

Public 类型

using FStaticMeshSectionArray = TArray< FStaticMeshSection, TInlineAllocator< 1 > >
 Sections for this LOD.
 

Public 成员函数

ENGINE_API FStaticMeshLODResources (bool bAddRef=true)
 Default constructor. 更多...
 
ENGINE_API int32 GetNumTriangles () const
 Return the triangle count of this LOD.
 
ENGINE_API int32 GetNumVertices () const
 Return the number of vertices in this LOD.
 
void InitResources (UStaticMesh *Parent)
 Initializes all rendering resources.
 
void ReleaseResources ()
 Releases all rendering resources.
 
void Serialize (FArchive &Ar, UObject *Owner, int32 Idx)
 Serialize.
 

Public 属性

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 bBuffersInlined: 1
 True if vertex and index data are serialized inline
 
uint32 bHasAdjacencyInfo: 1
 True if the adjacency index buffer contained data at init. 更多...
 
uint32 bHasDepthOnlyIndices: 1
 True if the depth only index buffers contained data at init. 更多...
 
uint32 bHasRayTracingGeometry: 1
 True if the ray tracing resources struct contained data at init.
 
uint32 bHasReversedDepthOnlyIndices: 1
 True if the reversed index buffers contained data at init. 更多...
 
uint32 bHasReversedIndices: 1
 True if the reversed index buffers contained data at init. 更多...
 
uint32 bIsOptionalLOD: 1
 True if this LOD is optional. 更多...
 
uint32 BuffersSize
 Sum of all vertex and index buffer sizes. 更多...
 
FRawStaticIndexBuffer DepthOnlyIndexBuffer
 Index buffer resource for rendering in depth only passes.
 
class FDistanceFieldVolumeData * DistanceFieldData = nullptr
 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.
 

友元

class FStaticMeshRenderData
 

详细描述

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.

构造及析构函数说明

◆ FStaticMeshLODResources()

ENGINE_API FStaticMeshLODResources::FStaticMeshLODResources ( bool  bAddRef = true)

Default constructor.

Add a reference if not stored with a TRefCountPtr

类成员变量说明

◆ AreaWeightedSectionSamplersBuffer

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

◆ bHasAdjacencyInfo

uint32 FStaticMeshLODResources::bHasAdjacencyInfo

True if the adjacency index buffer contained data at init.

Needed as it will not be available to the CPU afterwards.

◆ bHasDepthOnlyIndices

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.

◆ bHasReversedDepthOnlyIndices

uint32 FStaticMeshLODResources::bHasReversedDepthOnlyIndices

True if the reversed index buffers contained data at init.

Needed as it will not be available to the CPU afterwards.

◆ bHasReversedIndices

uint32 FStaticMeshLODResources::bHasReversedIndices

True if the reversed index buffers contained data at init.

Needed as it will not be available to the CPU afterwards.

◆ bIsOptionalLOD

uint32 FStaticMeshLODResources::bIsOptionalLOD

True if this LOD is optional.

That is, vertex and index data may not be available

◆ BuffersSize

uint32 FStaticMeshLODResources::BuffersSize

Sum of all vertex and index buffer sizes.

Calculated in SerializeBuffers

◆ DistanceFieldData

class FDistanceFieldVolumeData* FStaticMeshLODResources::DistanceFieldData = nullptr

Distance field data associated with this mesh, null if not present.



该结构体的文档由以下文件生成: