ezEngine  Milestone 9
ezResourceFlags Struct Reference

The flags of an ezResource instance. More...

#include <Declarations.h>


struct  Bits

Public Types

enum  Enum {
  UpdateOnMainThread = EZ_BIT(0), NoFileAccessRequired = EZ_BIT(1), ResourceHasFallback = EZ_BIT(2), IsReloadable = EZ_BIT(3),
  IsPreloading = EZ_BIT(4), HasCustomDataLoader = EZ_BIT(6), PreventFileReload = EZ_BIT(7), HasLowResData = EZ_BIT(8),
  IsCreatedResource = EZ_BIT(9), Default = 0
 The flags of an ezResource instance. More...
typedef ezUInt16 StorageType

Detailed Description

The flags of an ezResource instance.

Member Enumeration Documentation

◆ Enum

The flags of an ezResource instance.


After loading the resource data on a thread, it must be uploaded on the main thread. Use this for resources which require a context that is only available on the main thread.


The resource 'loading' does not require file accesses and can therefore be done on one or several non-file-loading threads. Use this for procedurally generated data.


Specifies whether this resource has a valid fallback resource that could be used. Automatically updated in ezResource::SetFallbackResource.

implement NoFileAccessRequired

The resource was created, not loaded from file.


True if someone wants to update a resource with custom data and has created a resource loader to update this specific resource.


Once this flag is set, no reloading from file is done, until the flag is manually removed. Automatically set when a custom loader is used. To restore a file to the disk state, this flag must be removed and then the resource can be reloaded.


Whether low resolution data was set on a resource once before.


When this is set, the resource was created and not loaded from file.

The documentation for this struct was generated from the following file: