]> git.tdb.fi Git - libs/gl.git/blobdiff - source/core/vertexformat.h
Expose the maximum number of attributes and attachments
[libs/gl.git] / source / core / vertexformat.h
index d5835013b53a925584bbfa8055a663f1f1382ed4..64c89e13166abae491fa2a50d30785cddd7a86cc 100644 (file)
@@ -76,9 +76,10 @@ Describes the attributes of a vertex.  Up to 15 attributes are allowed.
 */
 class VertexFormat
 {
-private:
-       enum { MAX_ATTRIBUTES = 15 };
+public:
+       static constexpr unsigned MAX_ATTRIBUTES = 15;
 
+private:
        std::uint8_t count = 0;
        VertexAttribute attributes[MAX_ATTRIBUTES];