WebGpuSlice typedef

WebGpuSlice = ({GPUBuffer buffer, int length, int offset})

Where an arena put some bytes: the buffer they landed in, and how far into it.

The buffer travels with the offset because an arena that has grown is several buffers, and a binding made against the wrong one reads somebody else's frame.

Implementation

typedef WebGpuSlice = ({GPUBuffer buffer, int offset, int length});