| 1333 | // <- |
| 1334 | |
| 1335 | void RenderSystem::beginFrame() |
| 1336 | { |
| 1337 | _INTR_PROFILE_CPU("Render System", "Begin Frame"); |
| 1338 | |
| 1339 | { |
| 1340 | releaseQueuedResources(); |
| 1341 | } |
| 1342 | |
| 1343 | { |
| 1344 | _INTR_PROFILE_CPU("Render System", "Acquire Next Image"); |
| 1345 | |
| 1346 | VkResult result = vkAcquireNextImageKHR(_vkDevice, _vkSwapchain, UINT64_MAX, |
| 1347 | _vkImageAcquiredSemaphore, |
| 1348 | VK_NULL_HANDLE, &_backbufferIndex); |
| 1349 | _INTR_VK_CHECK_RESULT(result); |
| 1350 | } |
| 1351 | |
| 1352 | { |
| 1353 | _INTR_PROFILE_CPU("Render System", "Wait For Previous Frame"); |
| 1354 | |
| 1355 | waitForFrame(_backbufferIndex); |
| 1356 | } |
| 1357 | |
| 1358 | { |
| 1359 | _allocatedSecondaryCmdBufferCount = 0u; |
| 1360 | beginPrimaryCommandBuffer(); |
| 1361 | |
| 1362 | #if defined(_INTR_PROFILING_ENABLED) |
| 1363 | MicroProfileFlip(getPrimaryCommandBuffer()); |
| 1364 | #endif // _INTR_PROFILING_ENABLED |
| 1365 | |
| 1366 | insertPostPresentBarrier(); |
| 1367 | } |
| 1368 | |
| 1369 | UniformManager::onFrameEnded(); |
| 1370 | DrawCallDispatcher::onFrameEnded(); |
| 1371 | } |
| 1372 | |
| 1373 | // <- |
| 1374 |
nothing calls this directly
no outgoing calls
no test coverage detected