]> git.tdb.fi Git - libs/gl.git/blobdiff - source/core/frameformat.h
Expose the maximum number of attributes and attachments
[libs/gl.git] / source / core / frameformat.h
index c55a0f303b269a2d495d29be5cd3354bf4a3e06b..669261ff6f49582b5e663d2d8fee756e3c329408 100644 (file)
@@ -36,9 +36,10 @@ attachments (currently up to seven) as well as a sample count.
 */
 class FrameFormat
 {
-private:
-       enum { MAX_ATTACHMENTS = 7 };
+public:
+       static constexpr unsigned MAX_ATTACHMENTS = 7;
 
+private:
        std::uint8_t count = 0;
        std::uint8_t samples = 0;
        FrameAttachment attachments[MAX_ATTACHMENTS];