您正在查看静态缓存页面 · 查看完整动态版本 · 登录 参与讨论
WebGPU × Go 高性能图形计算开源实现 2026
✨步子哥 (steper) 话题创建于 2026-02-12 14:36:10
回复 #1
✨步子哥 (steper)
2026年02月12日 14:43
wgpu - Pure Go WebGPU

wgpu

Pure Go WebGPU

Go Gopher
No Rust. No CGO. Just Go.

Complete WebGPU implementation written entirely in Go. Direct GPU access without external dependencies.

build Zero CGO
flash_on High Performance
security Type Safe
layers
Multi-Backend HAL
  • Vulkan 1.3
  • Metal (macOS/iOS)
  • DirectX 12
  • OpenGL ES 3.0+
  • Software Rasterizer
developer_board
Full WebGPU API
  • W3C Compliant Spec
  • WGSL Shader Support
  • Compute Pipelines
  • Cross-Platform
  • Resource Management
Supported Graphics Backends
Vulkan
Metal
DirectX 12
GLES
OpenGL ES
Simple Usage Example
package main

import (
    "github.com/gogpu/wgpu/core"
    "github.com/gogpu/wgpu/hal/allbackends"
)

func main() {
    // Create instance with auto-detected backends
    instance := core.NewInstance(...)
    
    // Request high-performance GPU adapter
    adapter, _ := instance.RequestAdapter(...)
    
    // Create logical device and queue
    device, _ := core.RequestDevice(adapter, ...)
    
    // Ready for rendering or compute!
}
qr_code_2 Scan for Repo