XLE
v0.02.0
|
Records the state of a resource being compiled More...
#include <IntermediateAssets.h>
Public Member Functions | |
PendingCompileMarker (AssetState state, const char sourceID0[], uint64 sourceID1, std::shared_ptr< DependencyValidation > depVal) | |
Public Member Functions inherited from Assets::PendingOperationMarker | |
AssetState | GetState () const |
void | SetState (AssetState newState) |
AssetState | StallWhilePending () const |
const char * | Initializer () const |
void | SetInitializer (const char initializer[]) |
PendingOperationMarker (AssetState state, std::shared_ptr< DependencyValidation > depVal) | |
Public Attributes | |
char | _sourceID0 [MaxPath] |
uint64 | _sourceID1 |
std::shared_ptr< ArchiveCache > | _archive |
Public Attributes inherited from Assets::PendingOperationMarker | |
std::shared_ptr< DependencyValidation > | _dependencyValidation |
Additional Inherited Members | |
Protected Attributes inherited from Assets::PendingOperationMarker | |
AssetState | _state |
Records the state of a resource being compiled
When a resource compile operation begins, we need some generic way to test it's state. We also need some breadcrumbs to find the final result when the compile is finished.
This class acts as a bridge between the compile operation and the final resource class. Therefore, we can interchangeable mix and match different resource implementations and different processing solutions.
Sometimes just a filename to the processed resource will be enough. Other times, objects are stored in a "ArchiveCache" object. For example, shader compiles are typically combined together into archives of a few different configurations. So a pointer to an optional ArchiveCache is provided.