Registers a mesh under the given name, replacing any existing entry.
Lookup key.
Mesh to take ownership of.
Looks up a previously registered mesh.
Lookup key.
The mesh, or undefined if not registered.
Registers a texture under the given name, replacing any existing entry.
Lookup key.
Texture to take ownership of.
Looks up a previously registered texture.
Lookup key.
The texture, or undefined if not registered.
Registers a shader under the given name, replacing any existing entry.
Lookup key.
Shader to register.
Looks up a previously registered shader.
Lookup key.
The shader, or undefined if not registered.
Destroys all owned meshes and textures and clears every cache.
Named cache and lifetime owner for shared meshes, textures, and shaders.
Assets registered here are kept alive for the lifetime of the manager and destroyed in bulk via
destroy(). Use this to share GPU resources between scenes or render passes.