close
Skip to main content
This release is versions behind 0.224.9 — the latest version of @std/webgpu.

@std/webgpu@0.224.4
Built and signed on GitHub Actions

Works with
This package works with Deno, BrowsersIt is unknown whether this package works with Bun
This package works with Deno
It is unknown whether this package works with Bun
This package works with Browsers
JSR Score94%
Downloads61/wk
Published2 years ago (0.224.4)

UNSTABLE: Utilities for working with the Web GPU API

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

Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.

Add Package

deno add jsr:@std/webgpu

Import symbol

import * as webgpu from "@std/webgpu";
or

Import directly with a jsr specifier

import * as webgpu from "jsr:@std/webgpu";