Webgpu Core Memory Model

Use when computing buffer sizes, copy offsets, bytesPerRow for texture copies, or dynamic bind-group offsets in WebGPU. Prevents the most common WebGPU validation failures caused by misaligned sizes and offsets. Covers host-side alignment rules: buffer size, writeBuffer, mapAsync and getMappedRange offsets, dynamic buffer offsets, the 256-byte bytesPerRow rule. Keywords: alignment, bytesPerRow, minUniformBufferOffsetAlignment, minStorageBufferOffsetAlignment, dynamic offset, buffer size multiple of 4, validation error, copy failed, bytesPerRow must be multiple of 256, why does my copy fail, offset alignment.

Impertio-Studio Updated 203 repo stars
35 Deterministic Skills for WebGPU

File contents

impertio-studio/webgpu-claude-skill-package commit 4ab05b5d02

Frequently asked questions

npx get-skill add impertio-studio/webgpu-core-memory-model