gpu

command
v0.15.7 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2025 License: MIT Imports: 7 Imported by: 0

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.

Jump to

Keyboard shortcuts

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