Egui::Backend::Sokol::SokolTextureRegistry
Inherits Egui::TextureRegistry < Reference < Object
GPU textures via the shim (sg_make_image/sampler/view); the core sees opaque UInt64 handles only.
Instance methods
Create an EMPTY updatable RGBA8 texture for pixels that change every frame (decoded video, camera frames); 0 = failure. Content is undefined until the first #update.
Destroy at END of frame. Raster-cache evictions (Svg#paint) happen while the frame's commands are still being built, and a texture referenced by an already-emitted ImageCmd must survive until the frame is drawn — the sokol backend flushes after its pass; this default destroys immediately (headless draws nothing).
Header-only probe (stbi_info shim) — pixel size for layout without decoding the whole image.
True while #destroy_later entries are pending — the backend must not replay its cached idle-frame commands (they may reference textures awaiting destruction).
Upload RGBA8 pixel data; returns a texture id (0 = failure).
Push fresh RGBA8 pixels into a texture created by #create_stream (same size it was created with).