| 14 | #include "SkrProfile/profile.h" |
| 15 | |
| 16 | void* skd::asset::SGltfMeshImporter::Import(skr_io_ram_service_t* ioService, SCookContext* context) |
| 17 | { |
| 18 | skr::filesystem::path relPath = assetPath.u8_str(); |
| 19 | auto ext = relPath.extension(); |
| 20 | if (ext != ".gltf") |
| 21 | { |
| 22 | return nullptr; |
| 23 | } |
| 24 | const auto assetRecord = context->GetAssetRecord(); |
| 25 | auto path = context->AddFileDependency(relPath).u8string(); |
| 26 | auto vfs = assetRecord->project->asset_vfs; |
| 27 | return ImportGLTFWithData(path.c_str(), ioService, vfs); |
| 28 | } |
| 29 | |
| 30 | void skd::asset::SGltfMeshImporter::Destroy(void* resource) |
| 31 | { |
nothing calls this directly
no test coverage detected