--- title: "@std/webgpu" description: "Utilities for working with the Web GPU API" jsr: jsr:@std/webgpu pkg: webgpu version: 0.224.9 generated: true stability: unstable --- :::info Unstable This @std package is experimental and its API may change without a major version bump. ::: ## Overview
Utilities for interacting with the WebGPU API.
```js 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])); ``` ### Add to your project ```sh deno add jsr:@std/webgpu ``` See all symbols in @std/webgpu on