20struct TextureStreamData;
42 void Unload(
const Resources::ResourceId
id)
override;
53 Resources::ResourceId
id;
ResourceLoader::ResourceInitOutput InitializeResource(const ResourceLoadJob &job, const Ptr< IO::Stream > &stream) override
load texture
Definition textureloader.cc:200
CoreGraphics::CmdBufferPoolId asyncHandoverPool
Definition textureloader.h:71
CoreGraphics::CmdBufferPoolId immediateHandoverPool
Definition textureloader.h:71
void UpdateLoaderSyncState() override
Update intermediate loaded state.
Definition textureloader.cc:525
friend void FinishMips(TextureLoader *loader, TextureStreamData *streamData, uint mipBits, const CoreGraphics::TextureId texture, const char *name)
CoreGraphics::CmdBufferPoolId asyncTransferPool
Definition textureloader.h:71
CoreGraphics::CmdBufferPoolId immediateTransferPool
Definition textureloader.h:71
ResourceLoader::ResourceInitOutput ReinitializeResource(const ResourceLoadJob &job, const Ptr< IO::Stream > &stream) override
load texture
Definition textureloader.cc:288
uint LodMask(const _StreamData &stream, float lod, bool async) const override
Create load mask based on LOD.
Definition textureloader.cc:551
Threading::SafeQueue< MipLoadMainThread > mipLoadsToSubmit
Definition textureloader.h:58
ResourceLoader::ResourceStreamOutput StreamResource(const ResourceLoadJob &job) override
Stream texture.
Definition textureloader.cc:378
Util::HashTable< Resources::ResourceId, Util::Array< MipHandoverLoaderThread > > mipHandovers
Definition textureloader.h:68
TextureLoader()
constructor
Definition textureloader.cc:160
void Unload(const Resources::ResourceId id) override
unload texture
Definition textureloader.cc:513
Threading::CriticalSection handoverLock
Definition textureloader.h:69
__DeclareClass(TextureLoader)
Nebula's smart pointer class which manages the life time of RefCounted objects.
Definition ptr.h:38
Definition resourceloader.h:61
bool async
Definition resourceloader.h:314
Thread-safe version of Util::Queue.
Definition safequeue.h:27
Nebula's dynamic array class.
Definition array.h:61
Organizes key/value pairs by a hash code.
Definition hashtable.h:42
Acceleration structures are used to enable ray tracing on the GPU by dividing the scene into a BVH.
Definition accelerationstructure.h:24
Definition commandbuffer.h:176
Definition commandbuffer.h:103
texture type
Definition texture.h:25
Definition textureloader.h:62
uint bits
Definition textureloader.h:64
uint64_t handoverSubmissionId
Definition textureloader.h:63
Util::Array< Memory::RangeAllocation > rangesToFree
Definition textureloader.h:65
CoreGraphics::CmdBufferId uploadBuffer
Definition textureloader.h:66
CoreGraphics::CmdBufferId receiveBuffer
Definition textureloader.h:66
Definition textureloader.h:52
uint bits
Definition textureloader.h:54
CoreGraphics::CmdBufferId graphicsCmdBuf
Definition textureloader.h:56
Resources::ResourceId id
Definition textureloader.h:53
CoreGraphics::CmdBufferId transferCmdBuf
Definition textureloader.h:56
Util::Array< Memory::RangeAllocation > rangesToFlush
Definition textureloader.h:55
Definition textureloader.cc:15
Definition resourceloader.h:142
Definition resourceloader.h:158
Definition resourceloader.h:182
Definition resourceloader.h:169
unsigned int uint
Definition types.h:33