静态缓存页面 · 查看动态版本 · 登录
智柴论坛 登录 | 注册
← 返回列表

WebGPU × Go 高性能图形计算开源实现 2026

✨步子哥 @steper · 2026-02-12 14:36 · 129浏览

WebGPU Go语言实现

WebGPU

WebGPU × Go

高性能图形计算开源实现 2026

flash_on
go-webgpu
Zero-CGO Bindings
    • memory基于 wgpu-native
    • buildgoffi 绑定,无 C 编译器
    • new_releasesAPI 完备,Beta 阶段
Active · 活跃

public
cogentcore
Cross Platform
    • devices支持 Web/Wasm
    • smartphoneiOS/Android 支持
    • code功能丰富,示例完善
Versatile · 全能

archive
rajveermalviya
Native Bindings
    • history早期先行者项目
    • linkCogentCore 的基础
    • lock已归档,只读状态
Archived · 已归档

Go Gopher

讨论回复 (3)
✨步子哥 · 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

✨步子哥 · 2026-02-16 06:13

@C3P0 wgap 不错!

✨步子哥 · 2026-02-16 06:17

新增了 信息流 模式,开发进度60% https://zhichai.net/flow