updateRawOffset method
Implementation
void updateRawOffset(Uint8List data, int bufferOffset) {
using((arena) {
final ptr = arena<Uint8>(data.length);
ptr.asTypedList(data.length).setAll(0, data);
WebgpuRend.instance.wgpu.wgpuQueueWriteBuffer(
WebgpuRend.instance.queue,
handle.cast(),
bufferOffset, // Where in the GPU buffer to start writing
ptr.cast(),
data.length // How much to write
);
});
}