Sorta want this type of API, but, CanvasFrame would be tied to a single type...

This commit is contained in:
2020-02-05 22:10:38 -08:00
parent 0c1f513225
commit 1597f0e380
5 changed files with 71 additions and 27 deletions

View File

@@ -265,9 +265,9 @@ impl<'a> VkProcessor<'a> {
drop(g);
{
let g = hprof::enter("Canvas creates GPU buffers");
// take the canvas frame and create the vertex buffers
// TODO: This performs gpu buffer creation. Shouldn't be in hotpath??
let g = hprof::enter("Canvas creates GPU buffers");
self.canvas_state.draw(canvas_frame);
}