Explicitly pass null to p_wait_dst_stage_mask in SubmitInfo

It seems that the optional-ness of this field was changed in a recent-ish
vk.xml update.
This commit is contained in:
Robin Voetter
2023-02-11 12:50:04 +01:00
parent 1070100e2e
commit 09565850a9

View File

@@ -210,6 +210,7 @@ fn copyBuffer(gc: *const GraphicsContext, pool: vk.CommandPool, dst: vk.Buffer,
const si = vk.SubmitInfo{ const si = vk.SubmitInfo{
.command_buffer_count = 1, .command_buffer_count = 1,
.p_command_buffers = @ptrCast([*]const vk.CommandBuffer, &cmdbuf), .p_command_buffers = @ptrCast([*]const vk.CommandBuffer, &cmdbuf),
.p_wait_dst_stage_mask = undefined,
}; };
try gc.vkd.queueSubmit(gc.graphics_queue.handle, 1, @ptrCast([*]const vk.SubmitInfo, &si), .null_handle); try gc.vkd.queueSubmit(gc.graphics_queue.handle, 1, @ptrCast([*]const vk.SubmitInfo, &si), .null_handle);
try gc.vkd.queueWaitIdle(gc.graphics_queue.handle); try gc.vkd.queueWaitIdle(gc.graphics_queue.handle);