Define the streaming capabilities of a UStreamableRenderAsset render resources. 更多...
#include <StreamableRenderResourceState.h>
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.
| 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.
| uint8 FStreamableRenderResourceState::NumRequestedLODs |
The expected number of LODs after the current streaming request completes.
Between NumNonStreamingLODs and MaxNumLODs.
| uint8 FStreamableRenderResourceState::NumResidentLODs |
The current number of LODs the resource has.
Between NumNonStreamingLODs and MaxNumLODs.