Async render passes

This commit is contained in:
2021-11-24 12:10:23 +01:00
parent 94be513538
commit 5fafdda770
23 changed files with 199 additions and 162 deletions
+11 -6
View File
@@ -34,31 +34,36 @@ void InspectorView::prepareRender()
}
void InspectorView::render()
Job InspectorView::render()
{
co_await uiPass.beginFrame();
co_await uiPass.render();
co_await uiPass.endFrame();
renderFinishedEvent.raise();
}
void InspectorView::keyCallback(KeyCode code, InputAction action, KeyModifier modifier)
void InspectorView::keyCallback(KeyCode, InputAction, KeyModifier)
{
}
void InspectorView::mouseMoveCallback(double xPos, double yPos)
void InspectorView::mouseMoveCallback(double, double)
{
}
void InspectorView::mouseButtonCallback(MouseButton button, InputAction action, KeyModifier modifier)
void InspectorView::mouseButtonCallback(MouseButton, InputAction, KeyModifier)
{
}
void InspectorView::scrollCallback(double xOffset, double yOffset)
void InspectorView::scrollCallback(double, double)
{
}
void InspectorView::fileCallback(int count, const char** paths)
void InspectorView::fileCallback(int, const char**)
{
}