mgpuCreateSampler function

MGPUSampler? mgpuCreateSampler(
  1. int addressU,
  2. int addressV,
  3. int addressW,
  4. int mag,
  5. int min,
  6. int mip,
  7. double lodMin,
  8. double lodMax,
  9. int compare,
)

Implementation

MGPUSampler? mgpuCreateSampler(
  int addressU,
  int addressV,
  int addressW,
  int mag,
  int min,
  int mip,
  double lodMin,
  double lodMax,
  int compare,
) {
  final sampler = _mgpuCreateSampler(
    addressU.toJS,
    addressV.toJS,
    addressW.toJS,
    mag.toJS,
    min.toJS,
    mip.toJS,
    lodMin.toJS,
    lodMax.toJS,
    compare.toJS,
  );
  return sampler.toDartInt == 0 ? null : sampler;
}