Skip to main content
Module

std/webgpu/mod.ts

The Deno Standard Library
Go to Latest
import * as mod from "https://deno.land/std@0.223.0/webgpu/mod.ts";

Utilities for interacting with the WebGPU API.

Variables

Number of bytes per pixel.

Buffer-Texture copies must have [bytes_per_row] aligned to this number.

Functions

Creates a texture and buffer to use as a capture.

Create a GPUTexture with data.

Get various information about a specific GPUTextureFormat.

Calculates the number of bytes including necessary padding when passing a GPUImageCopyBuffer.

Creates a new buffer while removing any unnecessary empty bytes. Useful for when wanting to save an image as a specific format.