bufferData method

dynamic bufferData(
  1. int target,
  2. int size,
  3. dynamic data,
  4. int usage,
)

Implementation

bufferData(int target, int size, data, int usage) {
  if (data is NativeArray) {
    bufferDataNative(target, size, data, usage);
  } else {
    bufferDataNormal(target, size, data, usage);
  }
}