39 default:
return "<UNKNOWN>";
46 CHECK(
false) <<
"Unspecialized attribute GetTypeByValue() called.";
87 normalize_ == other.normalize_) {
92 equal = GetValue<float>() == other.
GetValue<
float>();
95 equal = math::VectorBase2f::AreValuesEqual(
96 GetValue<math::VectorBase2f>(),
97 other.
GetValue<math::VectorBase2f>());
100 equal = math::VectorBase3f::AreValuesEqual(
101 GetValue<math::VectorBase3f>(),
102 other.
GetValue<math::VectorBase3f>());
105 equal = math::VectorBase4f::AreValuesEqual(
106 GetValue<math::VectorBase4f>(),
107 other.
GetValue<math::VectorBase4f>());
119 equal = GetValue<BufferObjectElement>().buffer_object.Get() ==
121 GetValue<BufferObjectElement>().spec_index ==
static ValueType GetTypeByValue()
Returns the type for a templated value type.
AttributeType
The AttributeType enum defines all supported attribute shader argument types.
Matrix< 3, float > Matrix3f
Structure for clients to use to encapsulate Elements.
The Matrix class defines a square N-dimensional matrix.
Copyright 2016 Google Inc.
static const char * GetShaderInputTypeName()
Returns a string containing "attribute".
bool operator==(const Attribute &other) const
static const char * GetValueTypeName(const ValueType type)
Returns a string representing a attribute type.