Documentation
¶
Overview ¶
Example: Scene rendering with GPU acceleration
Demonstrates the GPU auto-select path in scene.Renderer. When `import _ "gg/gpu"` registers the GPU accelerator, scene.Renderer automatically routes through GPUSceneRenderer instead of the CPU tile-parallel path.
The same scene code works identically with or without GPU — remove the gpu import to fall back to CPU rendering.
Output: scene_gpu_output.png (512x512)
Click to show internal directories.
Click to hide internal directories.