102 pool->processDeletionQueue();
110 pool->printResources(
true );
120 pool->processDeletionQueue();
TaskPool & taskPool(const TaskPoolType type) noexcept
static vector< ResourcePoolBase * > s_resourcePools
static void OnFrameStart()
static void RegisterPool(ResourcePoolBase *pool)
static PlatformContext * s_context
static RenderAPI s_renderAPI
static void Init(RenderAPI renderAPI, PlatformContext &context)
static void PrintLeakedResources()
const size_t _loadingHash
static eastl::set< size_t > s_loadingHashes
static SharedMutex s_hashLock
static bool SetLoadingFinished(size_t hash)
static bool SetLoading(size_t hash)
ResourceLoadLock(size_t hash, PlatformContext &context)
bool isMainThread() noexcept
Handle console commands that start with a forward slash.
std::lock_guard< mutex > LockGuard
void PlatformContextIdleCall()
std::shared_mutex SharedMutex
std::unique_lock< mutex > UniqueLock
std::shared_lock< mutex > SharedLock
static NO_INLINE void printfn(const char *format, T &&... args)
ResourcePoolBase(RenderAPI api)
virtual ~ResourcePoolBase()