MCPcopy Create free account
hub / github.com/NVIDIAGameWorks/Blast / parseAssetList

Function parseAssetList

samples/SampleBase/scene/SampleAssetListParser.cpp:280–292  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

278
279
280void parseAssetList(AssetList& assetList, std::string filepath)
281{
282 physx::PsFileBuffer fileBuffer(filepath.c_str(), physx::general_PxIOStream2::PxFileBuf::OPEN_READ_ONLY);
283 if (!fileBuffer.isOpen())
284 {
285 return;
286 }
287 PxInputDataFromPxFileBuf inputData(fileBuffer);
288 AssetListParser parser(assetList);
289 physx::shdfnd::FastXml* xml = physx::shdfnd::createFastXml(&parser);
290 xml->processXml(inputData, false);
291 xml->release();
292}

Callers 1

onSampleStartMethod · 0.85

Calls 1

releaseMethod · 0.45

Tested by

no test coverage detected