Expand description
GpuView — a retained scene surface painted by gpui’s GPU renderer.
GpuView is for app-owned worlds that are more naturally expressed as a
scene than a tree of controls: maps, editors, diagrams, simulations, and
sprite-heavy status views. It keeps the scene API small, leaves animation
state with the caller, and submits quads and textures through gpui’s native
paint pipeline. There is no web canvas or embedded browser involved.
Structs§
- GpuRect
- A rectangle in the scene’s logical coordinate space.
- GpuScene
- A retained list of GPU-friendly drawing commands in a logical coordinate
space. Build or update it with application state, then pass it to
GpuView. Commands paint in insertion order. - GpuTexture
- Encoded image data retained by a
GpuScene. - GpuView
- A stateless scene component backed by gpui’s native GPU paint pipeline.
Enums§
- GpuFit
- How a scene’s logical coordinate space maps into the view bounds.