getTransformFeedbackVarying method

ActiveInfo getTransformFeedbackVarying(
  1. int program,
  2. int index
)

Implementation

ActiveInfo getTransformFeedbackVarying(int program, int index) {
  startCheck('getTransformFeedbackVarying');
  int maxLen = 100;
  var length = calloc<Int32>();
  var size = calloc<Int32>();
  var type = calloc<Uint32>();
  var name = calloc<Int8>(maxLen);

  gl.glGetTransformFeedbackVarying(program, index, maxLen - 1, length, size, type, name);
  checkError('getTransformFeedbackVarying');
  int _type = type.value;
  String _name = name.cast<Utf8>().toDartString();
  int _size = size.value;

  calloc.free(type);
  calloc.free(name);
  calloc.free(size);
  calloc.free(length);

  return ActiveInfo(_type, _name, _size);
}