Omen-of-Aecio / vxdraw

Simple and Fast 2D rendering library for Rust, based on gfx-hal
31 stars 2 forks source link

Allow sharing of textures among multiple pipelines (layers) #2

Open kstrafe opened 5 years ago

kstrafe commented 5 years ago

Suppose we have a texture that's uploaded to the GPU, if we have multiple layers, right now we need to copy that texture for every single pipeline, thus filling VRAM with copies of the same thing.

What we need here is a stack-based reference counting mechanism.