Navigation
API > API/Runtime > API/Runtime/Engine
Represents the derived data of a SVT that is needed by the streaming manager.
| Name | FResources |
| Type | struct |
| Header File | /Engine/Source/Runtime/Engine/Classes/SparseVolumeTexture/SparseVolumeTexture.h |
| Include Path | #include "SparseVolumeTexture/SparseVolumeTexture.h" |
Syntax
struct FResources
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| DDCChunkIds | TArray< TStaticArray< uint8, 12 > > | SparseVolumeTexture/SparseVolumeTexture.h | ||
| DDCChunkMaxTileIndices | TArray< uint32 > | SparseVolumeTexture/SparseVolumeTexture.h | ||
| DDCKeyHash | FIoHash | SparseVolumeTexture/SparseVolumeTexture.h | ||
| Header | FHeader | SparseVolumeTexture/SparseVolumeTexture.h | ||
| NumMipLevels | int32 | SparseVolumeTexture/SparseVolumeTexture.h | ||
| ResourceFlags | uint32 | SparseVolumeTexture/SparseVolumeTexture.h | ||
| ResourceName | FString | These are used for logging and retrieving StreamableMipLevels from DDC in FStreamingManager. | SparseVolumeTexture/SparseVolumeTexture.h | |
| RootData | TArray< uint8 > | Data for the highest/"root" mip level. | SparseVolumeTexture/SparseVolumeTexture.h | |
| StreamableMipLevels | FByteBulkData | Data for all streamable mip levels. | SparseVolumeTexture/SparseVolumeTexture.h | |
| StreamingMetaData | FTileStreamingMetaData | Info about offsets into the tile data. | SparseVolumeTexture/SparseVolumeTexture.h | |
| Topology | FPageTopology | SparseVolumeTexture/SparseVolumeTexture.h |
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| DDCRebuildNumFinishedRequests | std::atomic_int | SparseVolumeTexture/SparseVolumeTexture.h | ||
| DDCRebuildState | std::atomic< EDDCRebuildState > | SparseVolumeTexture/SparseVolumeTexture.h | ||
| DDCRequestOwner | TDontCopy< TPimplPtr< UE::DerivedData::FRequestOwner > > | SparseVolumeTexture/SparseVolumeTexture.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool Build
(
USparseVolumeTextureFrame* Owner, |
Builds all the data from SourceData. Is called by Cache(). | SparseVolumeTexture/SparseVolumeTexture.h | |
void Cache
(
USparseVolumeTextureFrame* Owner, |
Cache the built data to/from DDC. If bLocalCachingOnly is true, the read/write queries will only use the local DDC; otherwise the remote DDC will also be used. | SparseVolumeTexture/SparseVolumeTexture.h | |
void DropBulkData() |
Removes the StreamableMipLevels bulk data if it was successfully cached to DDC. | SparseVolumeTexture/SparseVolumeTexture.h | |
bool HasBuildFromDDCError() |
SparseVolumeTexture/SparseVolumeTexture.h | ||
bool HasStreamingData() |
Returns true if there are streamable mip levels. | SparseVolumeTexture/SparseVolumeTexture.h | |
bool RebuildBulkDataFromCacheAsync
(
const UObject* Owner, |
Fills StreamableMipLevels with data from DDC. Returns true when done. | SparseVolumeTexture/SparseVolumeTexture.h | |
| Called when serializing to/from DDC buffers and when serializing the owning USparseVolumeTextureFrame. | SparseVolumeTexture/SparseVolumeTexture.h | ||
void SetDefault
(
EPixelFormat FormatA, |
Sets empty default data. This is used when caching/building is canceled but some form of valid data is needed. | SparseVolumeTexture/SparseVolumeTexture.h | |
void SetHasBuildFromDDCError
(
bool bHasError |
SparseVolumeTexture/SparseVolumeTexture.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static FTileStreamingMetaData CompressTiles
(
const FPageTopology& Topology, |
SparseVolumeTexture/SparseVolumeTexture.h | ||
static bool IsInitialState
(
EDDCRebuildState State |
SparseVolumeTexture/SparseVolumeTexture.h |