| 352 | } |
| 353 | |
| 354 | void OnDrawFrame() override |
| 355 | { |
| 356 | // Update scene by user input |
| 357 | UpdateScene(); |
| 358 | |
| 359 | commands->Begin(); |
| 360 | { |
| 361 | // Bind common input assembly |
| 362 | commands->SetVertexBuffer(*vertexBuffer); |
| 363 | |
| 364 | // Draw scene into shadow-map, then draw scene onto screen |
| 365 | commands->PushDebugGroup("Shadow Map Pass"); |
| 366 | RenderShadowMap(); |
| 367 | commands->PopDebugGroup(); |
| 368 | |
| 369 | commands->PushDebugGroup("Scene Pass"); |
| 370 | RenderScene(); |
| 371 | commands->PopDebugGroup(); |
| 372 | } |
| 373 | commands->End(); |
| 374 | commandQueue->Submit(*commands); |
| 375 | } |
| 376 | |
| 377 | }; |
| 378 |
nothing calls this directly
no test coverage detected