nativeWriteInto method
Writes all fields directly into the native struct reference p.
For nested structs, use writeInto as well.
Implementation
@override
void nativeWriteInto(MaterialC p) {
shader.nativeWriteInto(p.shader);
if (p.maps.address != 0) {
for (int i = 0; i < maps.length; i++) {
_maps.inner[i].nativeWriteInto((p.maps + i).ref);
}
}
for (int i = 0; i < paramsCount; i++) {
p.params[i] = _params.inner[i];
}
}