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

Method HasContentLoaded

Source/Engine/Graphics/PostProcessSettings.cpp:250–271  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

248}
249
250bool PostProcessSettings::HasContentLoaded() const
251{
252 // Helper textures
253 if (LensFlares.LensColor && !LensFlares.LensColor->IsLoaded())
254 return false;
255 if (LensFlares.LensDirt && !LensFlares.LensDirt->IsLoaded())
256 return false;
257 if (LensFlares.LensStar && !LensFlares.LensStar->IsLoaded())
258 return false;
259 if (DepthOfField.BokehShapeCustom && !DepthOfField.BokehShapeCustom->IsLoaded())
260 return false;
261
262 // PostFx materials
263 for (int32 i = 0; i < PostFxMaterials.Materials.Count(); i++)
264 {
265 const auto material = PostFxMaterials.Materials[i].Get();
266 if (material && !material->IsLoaded())
267 return false;
268 }
269
270 return true;
271}
272
273void PostProcessSettings::Serialize(SerializeStream& stream, const void* otherObj)
274{

Callers

nothing calls this directly

Calls 3

IsLoadedMethod · 0.45
CountMethod · 0.45
GetMethod · 0.45

Tested by

no test coverage detected