rendertarget multi frame rewrite complete

This commit is contained in:
Jorijn van der Graaf 2026-03-13 01:06:55 +01:00
commit bc97c13a0b
6 changed files with 76 additions and 22 deletions

View file

@ -69,6 +69,7 @@ export namespace Crafter {
std::uint32_t height;
std::chrono::time_point<std::chrono::high_resolution_clock> lastFrameBegin;
Event<void> onClose;
Event<void> onBeforeUpdate;
Event<FrameTime> onUpdate;
bool open = true;
bool updating = false;
@ -180,6 +181,8 @@ export namespace Crafter {
void SetPipelineRT(PipelineRTVulkan& pipeline);
VkCommandBuffer StartInit();
void FinishInit();
VkCommandBuffer GetCmd();
void EndCmd(VkCommandBuffer cmd);
void CreateSwapchain();
static constexpr std::uint8_t numFrames = 3;
VkSurfaceKHR vulkanSurface = VK_NULL_HANDLE;