setC method

  1. @override
ShaderD setC(
  1. ShaderC o
)
override

Copies the fields of the native struct o into this instance.

Implementation

@override
ShaderD setC(ShaderC o) {
  onOriginalPointer((p) {
    p.ref.locs = o.locs;
  });
  id = o.id;
  locs = o.locs.address != 0
    ? .generate(Raylib.instance.Rlgl.RL_MAX_SHADER_LOCATIONS, (i) => o.locs[i])
    : .filled(Raylib.instance.Rlgl.RL_MAX_SHADER_LOCATIONS, 0);
  return this;
}