]> git.tdb.fi Git - libs/gl.git/blobdiff - source/core/vertexformat.h
Initial implementation of Vulkan backend
[libs/gl.git] / source / core / vertexformat.h
index fba206e4386e978674a2d5e6bbc7cc33c9d2119e..e8ba702db1746c4c4b0ec5357f0f13fe6bf4fc77 100644 (file)
@@ -97,6 +97,7 @@ public:
        bool operator==(const VertexFormat &) const;
        bool operator!=(const VertexFormat &other) const { return !(*this==other); }
 
+       unsigned size() const { return count; }
        bool empty() const { return !count; }
        const VertexAttribute *begin() const { return attributes; }
        const VertexAttribute *end() const { return attributes+count; }
@@ -146,4 +147,6 @@ void operator>>(const LexicalConverter &, VertexAttribute &);
 } // namespace GL
 } // namespace Msp
 
+#include "vertexformat_backend.h"
+
 #endif