Examples /

Image convolution

Edges, blur, and sharpening in a GPU image pipeline.

Initializing WebGPUwgpu-kit 2.2.0

Move horizontally to slide the original / processed comparison.

How it works

The input is a generated test image stored in a vec4f buffer. A custom kernel reads each pixel’s neighborhood and computes a Sobel edge response, Gaussian-weighted blur, or sharpen filter. The comparison divider is computed in the same pass.

Read the related guide →

Search concepts, APIs, and examples