Module

std/webgpu/row_padding.ts

Deno standard library
Go to Latest
import * as mod from "https://dotland.deno.dev/std@0.215.0/webgpu/row_padding.ts";

Variables

Number of bytes per pixel.

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

Functions

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.

Interfaces

Return value for getRowPadding.