Sorta want this type of API, but, CanvasFrame would be tied to a single type...
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user