blob: 2e4a95d0e0c36ca36a2c0ffc67c6d9157e2e0961 [file] [log] [blame]
// Copyright (c) 2015, the Dart GL extension authors. All rights reserved.
// Please see the AUTHORS file for details. Use of this source code is governed
// by a BSD-style license that can be found in the LICENSE file or at
// https://developers.google.com/open-source/licenses/bsd
part of gl;
/// Contains data returned by [glGetActiveAttrib] or [glGetActiveUniform]
/// calls.
class ActiveInfo {
/// Returns the size of the attribute variable.
final int size;
/// Returns the data type of the attribute variable.
final int type;
/// Returns the [String] containing the name of the attribute variable.
final String name;
ActiveInfo(this.size, this.type, this.name);
}
/// Contains data returned by [glGetShaderPrecisionFormat] about the
/// range and precision for different shader numeric (floating point and
/// integer) shader variable formats.
class ShaderPrecisionFormat {
/// The precision of the format.
final int precision;
/// The maximum representable magnitude of the format.
final int rangeMax;
/// The minimum representable magnitude of the format.
final int rangeMin;
ShaderPrecisionFormat(this.rangeMin, this.rangeMax, this.precision);
}