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

Function bloom_load_texture_bytes

native/web/src/lib.rs:612–616  ·  view source on GitHub ↗
(data: &[u8])

Source from the content-addressed store, hash-verified

610/// Load a texture from raw image bytes (PNG/JPEG/etc.), fetched by JS glue via fetch().
611#[wasm_bindgen]
612pub fn bloom_load_texture_bytes(data: &[u8]) -> f64 {
613 let eng = engine();
614 let renderer_ptr = &mut eng.renderer as *mut bloom_shared::renderer::Renderer;
615 eng.textures.load_texture(unsafe { &mut *renderer_ptr }, data)
616}
617
618// ============================================================
619// Textures

Callers

nothing calls this directly

Calls 2

load_textureMethod · 0.80
engineFunction · 0.70

Tested by

no test coverage detected