struct Package::ResourceInformation

Runtime information about a resource stored in the package.

Public

Fields

MetaData

Meta-data for the resource.

This will be loaded independently of the resource data, and is always available if a package is loaded.

LoadedResource

SPtr<Resource> LoadedResource

Resource if loaded, or null otherwise.

IsLoadedResourceDirty

bool IsLoadedResourceDirty

True if the loaded resource was changed and requires to be re-serialized.

OffsetInDataStream

u64 OffsetInDataStream

Offset in bytes at which the resource data starts in the serialized data stream.

SizeInDataStream

u64 SizeInDataStream

Size of the resource data in the serialized data stream, in bytes.

LoadState

Load state of the resource.

LoadProgress

std::atomic<float> LoadProgress

State of resource load, in case resource loading is in progress.

LoadSignal

Signal LoadSignal

Signal that triggers when resource load completes.