nDepth method

int nDepth()

Implementation

int nDepth() {
  if (depth == null) {
    return 0;
  }
  switch (depth!) {
    case Depth.int16:
      return 16;
    case Depth.int8:
      return 8;
    case Depth.flt32:
      return 32;
  }
}