writeBuffer method

void writeBuffer(
  1. StorageBuffer target,
  2. int offsetInBytes,
  3. ByteData bytes
)
inherited

Writes bytes into target at offsetInBytes, in place. Visible starting the next pass, as overwriteGeometry; an offset and length that do not fit throw an ArgumentError before anything is written.

The call a simulation makes every step to feed a compute pass its inputs. Any buffer createBuffer made with BufferUsage.copyDestination. Gated by compute or buffers, whichever made the buffer possible.

Implementation

void writeBuffer(StorageBuffer target, int offsetInBytes, ByteData bytes) =>
    throw refuse(DeviceFeature.buffers);