nativeWriteInto method

  1. @override
void nativeWriteInto(
  1. ShaderC p
)
override

Writes all fields directly into the native struct reference p. For nested structs, use writeInto as well.

Implementation

@override
void nativeWriteInto(ShaderC p) {
  p.id = id;

  structOnOp((o) => p.locs = o.ref.locs);

  if (p.locs.address != 0) {
    for (var i = 0; i < locs.length; i++) {
      p.locs[i] = _locs.inner[i];
    }
  }
}