Binding Points Overview
Binding points define how shaders connect to GPU-side resources configured by the WebGPU API on the CPU:
- Attributes: Attach metadata to entry points, variables, structure members, and functions using attributes like
@group,@binding, and@location. - Uniform Buffers: Pass small, read-only chunks of configuration data to shaders using uniform buffers.
- Storage Buffers: Pass larger, dynamic, and potentially writable arrays of data via storage buffers.
- Textures: Access sampleable, storage, and depth/multisample textures inside shaders.