diff options
Diffstat (limited to 'src/3rdparty/angle/src/libANGLE/VertexAttribute.inl')
-rw-r--r-- | src/3rdparty/angle/src/libANGLE/VertexAttribute.inl | 47 |
1 files changed, 1 insertions, 46 deletions
diff --git a/src/3rdparty/angle/src/libANGLE/VertexAttribute.inl b/src/3rdparty/angle/src/libANGLE/VertexAttribute.inl index 0cd31f6762..1c1843e46f 100644 --- a/src/3rdparty/angle/src/libANGLE/VertexAttribute.inl +++ b/src/3rdparty/angle/src/libANGLE/VertexAttribute.inl @@ -9,51 +9,6 @@ namespace gl { -inline bool operator==(const VertexAttribute &a, const VertexAttribute &b) -{ - return a.enabled == b.enabled && - a.type == b.type && - a.size == b.size && - a.normalized == b.normalized && - a.pureInteger == b.pureInteger && - a.stride == b.stride && - a.pointer == b.pointer && - a.buffer.get() == b.buffer.get() && - a.divisor == b.divisor; -} - -inline bool operator!=(const VertexAttribute &a, const VertexAttribute &b) -{ - return !(a == b); -} - -template <typename T> -T QuerySingleVertexAttributeParameter(const VertexAttribute& attrib, GLenum pname) -{ - switch (pname) - { - case GL_VERTEX_ATTRIB_ARRAY_ENABLED: - return static_cast<T>(attrib.enabled ? GL_TRUE : GL_FALSE); - case GL_VERTEX_ATTRIB_ARRAY_SIZE: - return static_cast<T>(attrib.size); - case GL_VERTEX_ATTRIB_ARRAY_STRIDE: - return static_cast<T>(attrib.stride); - case GL_VERTEX_ATTRIB_ARRAY_TYPE: - return static_cast<T>(attrib.type); - case GL_VERTEX_ATTRIB_ARRAY_NORMALIZED: - return static_cast<T>(attrib.normalized ? GL_TRUE : GL_FALSE); - case GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: - return static_cast<T>(attrib.buffer.id()); - case GL_VERTEX_ATTRIB_ARRAY_DIVISOR: - return static_cast<T>(attrib.divisor); - case GL_VERTEX_ATTRIB_ARRAY_INTEGER: - return static_cast<T>(attrib.pureInteger ? GL_TRUE : GL_FALSE); - default: - UNREACHABLE(); - return static_cast<T>(0); - } -} - inline VertexAttribCurrentValueData::VertexAttribCurrentValueData() : Type(GL_FLOAT) { @@ -100,4 +55,4 @@ inline bool operator!=(const VertexAttribCurrentValueData &a, const VertexAttrib return !(a == b); } -} +} // namespace gl |