mgpuWriteFloat function

Future<void> mgpuWriteFloat(
  1. MGPUBuffer buffer,
  2. TypedData inputData,
  3. int size
)

Implementation

Future<void> mgpuWriteFloat(
  MGPUBuffer buffer,
  TypedData inputData,
  int size,
) async {
  // A direct export call like the other writes: C's write never suspends, and
  // a queued ccall could fall behind a sleeping read and land after later
  // writes and dispatches.
  _writeSync((b, p, n) => _mgpuWriteFloat(b, p, n), buffer, inputData, 4,
      size, floatWidth: 4);
}