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

Method Flush

Source/Engine/GraphicsDevice/Vulkan/GPUContextVulkan.cpp:1444–1455  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1442}
1443
1444void GPUContextVulkan::Flush()
1445{
1446 // Flush remaining and buffered commands
1447 FlushState();
1448 _currentState = nullptr;
1449 _currentCompute = nullptr;
1450
1451 // Execute commands
1452 _cmdBufferManager->SubmitActiveCmdBuffer();
1453 _cmdBufferManager->GetNewActiveCommandBuffer();
1454 ASSERT(_cmdBufferManager->HasPendingActiveCmdBuffer() && _cmdBufferManager->GetActiveCmdBuffer()->GetState() == CmdBufferVulkan::State::IsInsideBegin);
1455}
1456
1457void GPUContextVulkan::UpdateBuffer(GPUBuffer* buffer, const void* data, uint32 size, uint32 offset)
1458{

Callers 3

AllocateMethod · 0.45
TryPresentMethod · 0.45
PresentMethod · 0.45

Calls 5

SubmitActiveCmdBufferMethod · 0.80
GetActiveCmdBufferMethod · 0.80
GetStateMethod · 0.45

Tested by

no test coverage detected