MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / LoadChunks

Method LoadChunks

Source/Engine/Content/BinaryAsset.cpp:286–304  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

284}
285
286bool BinaryAsset::LoadChunks(AssetChunksFlag chunks) const
287{
288 if (chunks == 0)
289 return false;
290 ASSERT(Storage);
291 for (int32 i = 0; i < ASSET_FILE_DATA_CHUNKS; i++)
292 {
293 auto chunk = _header.Chunks[i];
294 if (chunk != nullptr
295 && chunks & GET_CHUNK_FLAG(i)
296 && chunk->IsMissing()
297 && chunk->ExistsInFile())
298 {
299 if (Storage->LoadAssetChunk(chunk))
300 return true;
301 }
302 }
303 return false;
304}
305
306#if USE_EDITOR
307

Callers 6

LoadShaderCacheMethod · 0.80
ExportCubeTextureMethod · 0.80
ProcessDefaultAssetMethod · 0.80
ProcessMaterialFunction · 0.80
ProcessShaderFunction · 0.80
ProcessParticleEmitterFunction · 0.80

Calls 2

IsMissingMethod · 0.80
LoadAssetChunkMethod · 0.80

Tested by

no test coverage detected