forked from mirror/vulkan-zig
Fix some synchronization in the example + remove unused import
This commit is contained in:
@@ -153,8 +153,9 @@ pub fn main() !void {
|
||||
c.glfwSwapBuffers(window);
|
||||
c.glfwPollEvents();
|
||||
|
||||
try gc.vkd.queueWaitIdle(gc.graphics_queue.handle);
|
||||
}
|
||||
|
||||
try swapchain.waitForAllFences();
|
||||
}
|
||||
|
||||
fn uploadVertices(gc: *const GraphicsContext, pool: vk.CommandPool, buffer: vk.Buffer, memory: vk.DeviceMemory) !void {
|
||||
|
||||
Reference in New Issue
Block a user