INNER CODE UNIT · Rust

register_texture

attackgoat/vk-graph · crates/vk-graph-egui/src/lib.rs:350

    pub fn register_texture(&mut self, tex: impl Into<AnyImageNode>) -> egui::TextureId {
        let id = egui::TextureId::User(self.next_tex_id);
        self.next_tex_id += 1;
        self.user_textures.insert(id, tex.into());
        id
    }
}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…