MCPcopy Create free account
hub / github.com/Bloom-Engine/engine / set_render_texture_handle

Method set_render_texture_handle

native/shared/src/textures.rs:50–54  ·  view source on GitHub ↗

Set the texture handle for a render texture (called after GPU creation).

(&mut self, rt_handle: f64, tex_handle: f64)

Source from the content-addressed store, hash-verified

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);

Callers 3

Calls 1

get_mutMethod · 0.80

Tested by

no test coverage detected