This release is 2 versions behind 0.224.9 — the latest version of @std/webgpu. Jump to latest
Built and signed on GitHub ActionsBuilt and signed on GitHub Actions
Built and signed on GitHub Actions
UNSTABLE: Utilities for working with the Web GPU API
This package works with Deno, BrowsersIt is unknown whether this package works with Bun


JSR Score
94%
Published
a year ago (0.224.7)
Utilities for interacting with the WebGPU API.
import { createTextureWithData } from "@std/webgpu"; const adapter = await navigator.gpu.requestAdapter(); const device = await adapter?.requestDevice()!; createTextureWithData(device, { format: "bgra8unorm-srgb", size: { width: 3, height: 2, }, usage: GPUTextureUsage.COPY_SRC, }, new Uint8Array([1, 1, 1, 1, 1, 1, 1]));
Built and signed on
GitHub Actions
Add Package
deno add jsr:@std/webgpu
Import symbol
import * as webgpu from "@std/webgpu";
Import directly with a jsr specifier
import * as webgpu from "jsr:@std/webgpu";
Add Package
bunx jsr add @std/webgpu
Import symbol
import * as webgpu from "@std/webgpu";