engine
 
载入中...
搜索中...
未找到
Public 成员函数 | 所有成员列表
FStreamableRenderResourceState结构体 参考

Define the streaming capabilities of a UStreamableRenderAsset render resources. 更多...

#include <StreamableRenderResourceState.h>

Public 成员函数

FORCEINLINE bool IsValid () const
 Return whether this has any information to be relied on.
 
FORCEINLINE bool IsValidForStreamingRequest () const
 Validate that everything is valid and makes sense for a streaming requests.
 
FORCEINLINE int32 LODCountToAssetFirstLODIdx (int32 InLODCount) const
 Considering the given render resource LOD count, return the corresponding first LOD index within the asset LOD array.
 
FORCEINLINE int32 LODCountToFirstLODIdx (int32 InLODCount) const
 Considering the given render resource LOD count, return the corresponding first LOD index within the render resource LOD array.
 
FORCEINLINE int32 RequestedFirstLODIdx () const
 Return the first requested LOD index within the render resource LOD array.
 
FORCEINLINE int32 ResidentFirstLODIdx () const
 Return the first resident LOD index within the render resource LOD array.
 
FORCEINLINE bool StreamIn (int32 InLODCount)
 Validate that everything is valid and makes sense for a streaming requests.
 

详细描述

Define the streaming capabilities of a UStreamableRenderAsset render resources.

The properties defines the current render states, coherent on the gamethread for UStreamableRenderAsset::CachedSSRState. If used within render resources, like in FStreamableTextureResource::State, then it is coherent on the renderthread.

Is it only expected to be valid, if the render resource are created, with InitRHI command sent, in order to simplify logic. Also, { bSupportsStreaming, NumNonStreamingLODs, NumNonOptionalLODs, MaxNumLODs, AssetLODBias } are expected to be constant throughout the resource lifetime.

An important concept within this structure is that the resource first LOD is not required to be the first asset LOD, the offset being defined by AssetLODBias. This allows the streaming logic to ignore invalid, non relevant entries, or too many entries in the asset.

类成员变量说明

◆ AssetLODBias

uint8 FStreamableRenderResourceState::AssetLODBias

The asset LOD index of the resource LOD 0.

Non-zero when the render resource doesn't use all the asset LODs, for example ignore the first one.

◆ NumRequestedLODs

uint8 FStreamableRenderResourceState::NumRequestedLODs

The expected number of LODs after the current streaming request completes.

Between NumNonStreamingLODs and MaxNumLODs.

◆ NumResidentLODs

uint8 FStreamableRenderResourceState::NumResidentLODs

The current number of LODs the resource has.

Between NumNonStreamingLODs and MaxNumLODs.


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