看样子,thenInWorkerThread传递的参数是个函数,这个语法是怎么用的?[]里是什么作用?
return asyncSystem.all(std::move(resolvedBuffers))
.thenInWorkerThread(
[pResult = std::move(pResult)](
std::vector<ExternalBufferLoadResult>&& loadResults) mutable {
for (auto& bufferResult : loadResults) {
if (!bufferResult.success) {
pResult->warnings.push_back(
"Could not load the external gltf buffer: " +
bufferResult.bufferUri);
}
}
return std::move(*pResult.release());
});
--
FROM 27.208.36.*