add compute wait function

This commit is contained in:
Matthew 2026-06-14 11:40:23 +10:00
parent 2e4cfb3c26
commit f596f78479

View File

@ -2207,6 +2207,12 @@ Dispatch()
Dispatch(g_vk.comp_cmd); Dispatch(g_vk.comp_cmd);
} }
void
WaitForCompute()
{
vkWaitForFences(g_vk.device, 1, &g_vk.comp_fence, VK_TRUE, u64.max);
}
bool bool
VkCheck(string message, VkResult result) VkCheck(string message, VkResult result)
{ {