scene_gpu

command
v0.41.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 23, 2026 License: MIT Imports: 7 Imported by: 0

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL