Yatekii / imgui-wgpu-rs

Dear imgui renderer for wgpu-rs.
MIT License
256 stars 84 forks source link

Delete texture uploaded using `upload_texture`? #23

Closed WeAthFoLD closed 3 years ago

WeAthFoLD commented 4 years ago

Currently there is an exposed API, Renderer::upload_texture, which can be used to render custom textures .However, there is no corresponding Renderer::remove_texture(&mut self, TextureId) function to remove textures when they aren't used.

Another unrelated question: Can we have an API to directly add an wgpu::Texture to obtain TextureId? Current API makes many parameters of texture fixed, such as texture format and mipmap level.

Yatekii commented 3 years ago

Fixed in #20.