MCPcopy Create free account
hub / github.com/SakuraEngine/SakuraEngine / _Destroy

Method _Destroy

modules/tools/tool_core/src/asset/cook_context.cpp:89–99  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

87}
88
89void SCookContextImpl::_Destroy(void* resource)
90{
91 if(!importer)
92 {
93 SKR_LOG_ERROR(u8"[SCookContext::Cook] importer failed to load, asset path path: %s", record->path.u8string().c_str());
94 }
95 SKR_DEFER({ SkrDelete(importer); });
96 //-----import raw data
97 importer->Destroy(resource);
98 SKR_LOG_INFO(u8"[SCookContext::Cook] asset freed for asset: %s", record->path.u8string().c_str());
99}
100
101void* SCookContextImpl::_Import()
102{

Callers

nothing calls this directly

Calls 3

SkrDeleteFunction · 0.85
c_strMethod · 0.45
DestroyMethod · 0.45

Tested by

no test coverage detected