MCPcopy Create free account
hub / github.com/crownengine/crown / offline

Function offline

src/resource/texture_resource.cpp:54–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52 }
53
54 void offline(StringId64 id, ResourceManager &rm)
55 {
56 TextureResource *tr = (TextureResource *)rm.get(RESOURCE_TYPE_TEXTURE, id);
57 bgfx::destroy(tr->handle);
58 bgfx::frame();
59 bgfx::frame();
60 }
61
62 void unload(Allocator &a, void *resource)
63 {

Callers

nothing calls this directly

Calls 3

frameFunction · 0.85
destroyFunction · 0.50
getMethod · 0.45

Tested by

no test coverage detected