| 201 | } |
| 202 | |
| 203 | bool 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 | |
| 222 | void Renderer::Render(SceneRenderTask* task) |
| 223 | { |
no test coverage detected