Documentation
¶
Overview ¶
Package main demonstrates the GPU backend for gogpu/gg.
This example shows how to:
- Explicitly request the GPU (wgpu) backend
- Initialize and close the backend properly
- Render a scene using GPU acceleration
- Handle fallback to software rendering
The GPU backend uses WebGPU (via gogpu/wgpu) for hardware-accelerated 2D graphics rendering. When GPU is not available, it falls back to software rendering.
Note: The GPU rendering pipeline is implemented but GPU operations currently run as stubs. When gogpu/wgpu implements texture readback and buffer mapping, actual GPU rendering will be enabled.
Click to show internal directories.
Click to hide internal directories.