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 4ab05b5 4 files · 34.6 KB Updated

File contents

impertio-studio/webgpu-claude-skill-package/tree/main/skills/source/webgpu-core/webgpu-core-memory-model commit 4ab05b5d02

Frequently asked questions

npx skillmds@latest add impertio-studio/webgpu-core-memory-model