Hi,
I want to use one vertex buffer to draw multiple line strips, the vertex buffer will be updated when the previous line strip has been drawn.
In OpenGL, its code looks like:
glBind(bind vbo and vao);
glBufferData();
glDraw(something);
glBufferData(update vbo);
glDraw(something);
Pretty much the same way if you don’t mind it is a naive implementation. vkCmdBindVertexBuffers, vkCmdUpdateBuffer, vkCmdDraw*. Then needs things that Vulkan demands, such as Render Pass, so vkCmdBeginRenderPass containing proper VkSubpassDependenceies. vkCmd* is “only” a recording of commands, so it needs stuff to create the command buffer to record in, and then submit it to actually execute the recordings.