Vercel 开源了他们用于 AI 智能体着色器的 WebGPU 库,支持多种运行环境,体积小巧。
Vercel 开源了 vgpu,这是他们为 vercel.com 构建 WebGPU 库。vgpu 将 .wgsl 文件作为可导入的 TypeScript 模块处理,支持在浏览器、通过 Dawn 在无头 Node.js 中运行,并在确定性 CI 模拟中执行相同着色器。该库压缩后体积仅为 25 KB。
Vercel AI Open-Sources vgpu: A TypeScript WebGPU Library for AI Agent Shaders
Vercel has open-sourced vgpu, the WebGPU library it built to ship the shaders on vercel.com. It treats .wgsl files as importable TypeScript modules, runs the same shader in the browser, in headless Node.js via Dawn, and in a deterministic CI mock, and ships a fullscreen effect in 25 KB gzipped. The post Vercel AI Open-Sources vgpu: A TypeScript WebGPU Library for AI Agent Shaders appeared first on MarkTechPost .