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

Method Begin

Source/Engine/GraphicsDevice/Vulkan/GPUSwapChainVulkan.cpp:142–156  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

140}
141
142void GPUSwapChainVulkan::Begin(RenderTask* task)
143{
144 GPUSwapChain::Begin(task);
145
146 // Wait for the backbuffer to be available
147 if (_currentImageIndex != -1)
148 {
149 auto& backBuffer = _backBuffers[_currentImageIndex];
150 if (backBuffer.SubmitCmdBuffer)
151 {
152 backBuffer.SubmitCmdBuffer->Wait();
153 backBuffer.SubmitCmdBuffer = nullptr;
154 }
155 }
156}
157
158bool GPUSwapChainVulkan::Resize(int32 width, int32 height)
159{

Callers

nothing calls this directly

Calls 2

BeginFunction · 0.50
WaitMethod · 0.45

Tested by

no test coverage detected