webgpu-impl-instancing-indirect

Installation
SKILL.md

WebGPU Instancing and Indirect Draws

Draw one mesh thousands of times in a single call, and let the GPU itself decide how many vertices, instances, or workgroups to process by reading draw parameters from a buffer instead of from JavaScript.

Quick Reference

WebGPU 1.0-stable (Chrome 113+, Safari 26+, Firefox 141+).

Indirect call Buffer size u32 values, in exact order
drawIndirect 16 bytes vertexCount, instanceCount, firstVertex, firstInstance
drawIndexedIndirect 20 bytes indexCount, instanceCount, firstIndex, baseVertex, firstInstance
dispatchWorkgroupsIndirect 12 bytes workgroupCountX, workgroupCountY, workgroupCountZ

All values are tightly packed little-endian u32. The GPU reads EXACTLY this many bytes starting at indirectOffset.

Installs
3
GitHub Stars
1
First Seen
Aug 5, 2026
webgpu-impl-instancing-indirect — impertio-studio/webgpu-claude-skill-package