Set the texture handle for a render texture (called after GPU creation).
(&mut self, rt_handle: f64, tex_handle: f64)
| 48 | |
| 49 | /// Set the texture handle for a render texture (called after GPU creation). |
| 50 | pub fn set_render_texture_handle(&mut self, rt_handle: f64, tex_handle: f64) { |
| 51 | if let Some(rt) = self.render_textures.get_mut(rt_handle) { |
| 52 | rt.texture_handle = tex_handle; |
| 53 | } |
| 54 | } |
| 55 | |
| 56 | pub fn unload_render_texture(&mut self, handle: f64) { |
| 57 | self.render_textures.free(handle); |
no test coverage detected