|
Public Types | |
typedef ChunkTypeT | ChunkType |
Unloaded | |
No chunk data loaded. | |
Pending | |
Requested, but not currently queued for load. | |
Loading | |
Currently queued for load; in-flight. | |
Loaded | |
Chunk is currently loaded. | |
enum | { Unloaded, Pending, Loading, Loaded } |
Track the current state of this stub's paged data. More... | |
Public Member Functions | |
AtlasResourceStub () | |
const bool | hasResource () const |
Is a chunk for this stub currently loaded? | |
virtual void | read (Stream *s, const U32 version) |
virtual void | write (Stream *s) |
void | purge () |
Forcibly purge our chunk. | |
Public Attributes | |
ChunkType * | mChunk |
U32 | offset |
Position relative to file start, in bytes, for this stub's chunk. | |
U32 | length |
Length of the chunk. | |
U32 | generation |
fancy pants generation number. | |
U32 | stubOffset |
Offset of this stub in the file. | |
U32 | optimizeOrder |
When writing optimized, we can provide an optimization order which allows us to optimize for write order, e.g. | |
enum AtlasResourceStub:: { ... } | mState |
Track the current state of this stub's paged data. | |
F32 | mPriority |
F32 | mHeat |
AtlasRequestHeader | mRequests |
typedef ChunkTypeT AtlasResourceStub< ChunkTypeT >::ChunkType |
anonymous enum |
AtlasResourceStub< ChunkTypeT >::AtlasResourceStub | ( | ) | [inline] |
const bool AtlasResourceStub< ChunkTypeT >::hasResource | ( | ) | const [inline] |
Is a chunk for this stub currently loaded?
virtual void AtlasResourceStub< ChunkTypeT >::read | ( | Stream * | s, | |
const U32 | version | |||
) | [inline, virtual] |
Reimplemented in AtlasResourceConfigStub, AtlasResourceGeomStub, and AtlasResourceTexStub.
virtual void AtlasResourceStub< ChunkTypeT >::write | ( | Stream * | s | ) | [inline, virtual] |
Reimplemented in AtlasResourceConfigStub, AtlasResourceGeomStub, and AtlasResourceTexStub.
void AtlasResourceStub< ChunkTypeT >::purge | ( | ) | [inline] |
Forcibly purge our chunk.
ChunkType* AtlasResourceStub< ChunkTypeT >::mChunk |
U32 AtlasResourceStub< ChunkTypeT >::offset |
Position relative to file start, in bytes, for this stub's chunk.
U32 AtlasResourceStub< ChunkTypeT >::length |
Length of the chunk.
U32 AtlasResourceStub< ChunkTypeT >::generation |
fancy pants generation number.
.. let's say this always gets tracked so we can see how many generations went into this.
U32 AtlasResourceStub< ChunkTypeT >::stubOffset |
Offset of this stub in the file.
NOT serialized; used for updating the stub.
U32 AtlasResourceStub< ChunkTypeT >::optimizeOrder |
When writing optimized, we can provide an optimization order which allows us to optimize for write order, e.g.
on an optical disk for a console. This order is applied across all TOCs, in order of the TOCs in the the file. If the same ID is encountered in multiple places, ties are broken with that rule.
Zero is considered a non-order; zeros are written after every other number.
enum { ... } AtlasResourceStub< ChunkTypeT >::mState |
Track the current state of this stub's paged data.
F32 AtlasResourceStub< ChunkTypeT >::mPriority |
F32 AtlasResourceStub< ChunkTypeT >::mHeat |
AtlasRequestHeader AtlasResourceStub< ChunkTypeT >::mRequests |