Avoid creating a vertex buffer every frame

This commit is contained in:
Héctor Ramón Jiménez 2020-02-26 12:52:30 +01:00
parent 59d45a5440
commit c58d94f3fd
5 changed files with 73 additions and 48 deletions

View file

@ -86,8 +86,6 @@ impl Cache {
let allocation =
atlas.upload(width, height, &image, device, encoder)?;
dbg!("Uploaded");
*memory = Memory::Device(allocation);
}