feat: wait until vertex generation is completed

This commit is contained in:
dscyrescotti committed 2024-05-15 01:59:30 +07:00
1 parent 42eb3e661e
commit 9d2b633f86
1 file changed
+1
@@ -83,6 +83,7 @@ class StrokeRenderPass: RenderPass {
computeEncoder.dispatchThreadgroups(numThreadgroups, threadsPerThreadgroup: threadsPerGroup)
computeEncoder.endEncoding()
quadCommandBuffer.commit()
quadCommandBuffer.waitUntilCompleted()
}
private func drawStrokeTexture(on canvas: Canvas, with renderer: Renderer) {