From 64ccf707e334a95a0680fc24928c04b717d95a20 Mon Sep 17 00:00:00 2001 From: Matthew Date: Mon, 25 Aug 2025 05:15:27 +1000 Subject: [PATCH] add transition to clear color --- vulkan.d | 1 + 1 file changed, 1 insertion(+) diff --git a/vulkan.d b/vulkan.d index b331e3d..cb133c7 100644 --- a/vulkan.d +++ b/vulkan.d @@ -1971,6 +1971,7 @@ CreateComputePipeline(Vulkan* vk, CompPipelineInfo* comp_info) void ClearColor(Vulkan* vk, f32[4] color) { + Transition(vk.cmds[vk.frame_index], &vk.draw_image, VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL); ClearColor(vk, &vk.draw_image, color); }