MCPcopy Create free account
hub / github.com/begla/Intrinsic / resizeSwapChain

Method resizeSwapChain

IntrinsicCore/src/IntrinsicRendererRenderSystem.cpp:1284–1302  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1282// <-
1283
1284void RenderSystem::resizeSwapChain(bool p_Force)
1285{
1286 if ((_swapChainUpdatePending &&
1287 _timePassedSinceLastSwapChainUpdate >= _timeBetweenSwapChainUpdates) ||
1288 p_Force)
1289 {
1290 vkDeviceWaitIdle(_vkDevice);
1291
1292 initOrUpdateVkSwapChain();
1293 reinitRendering();
1294
1295 _swapChainUpdatePending = false;
1296 _timePassedSinceLastSwapChainUpdate = 0.0f;
1297 }
1298 else
1299 {
1300 _timePassedSinceLastSwapChainUpdate += TaskManager::_lastDeltaT;
1301 }
1302}
1303
1304// <-
1305

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected