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

Method IsReady

Source/Engine/Renderer/Renderer.cpp:203–220  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

201}
202
203bool Renderer::IsReady()
204{
205 // Warm up first (state getters initialize content loading so do it for all first)
206 AtmosphereCache atmosphereCache;
207 AtmospherePreCompute::GetCache(&atmosphereCache);
208 for (int32 i = 0; i < PassList.Count(); i++)
209 PassList[i]->IsReady();
210
211 // Now check state
212 if (!AtmospherePreCompute::GetCache(&atmosphereCache))
213 return false;
214 for (int32 i = 0; i < PassList.Count(); i++)
215 {
216 if (!PassList[i]->IsReady())
217 return false;
218 }
219 return true;
220}
221
222void Renderer::Render(SceneRenderTask* task)
223{

Callers 7

RunPostFxPassMethod · 0.45
RunMaterialPostFxPassMethod · 0.45
HasAnyPostFxMethod · 0.45
RenderInnerFunction · 0.45
DrawTextMethod · 0.45
DrawMaterialMethod · 0.45

Calls 2

GetCacheFunction · 0.85
CountMethod · 0.45

Tested by

no test coverage detected