2 #include "renderer_backend.h"
7 void VulkanRenderer::begin(Semaphore &sem)
9 static_cast<Renderer *>(this)->begin();
11 begin_semaphore = &sem;
14 void VulkanRenderer::end()
16 static_cast<Renderer *>(this)->commands.use_pipeline(0);
19 void VulkanRenderer::end(Semaphore &sem)
21 Renderer &self = *static_cast<Renderer *>(this);
23 self.commands.submit_frame(begin_semaphore, &sem);