X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fcore%2Fframeformat.h;h=669261ff6f49582b5e663d2d8fee756e3c329408;hp=c55a0f303b269a2d495d29be5cd3354bf4a3e06b;hb=08e74e913d80693c79c00c18da1130cc5604952c;hpb=5aeec81a23bc83e90d5daa5eb7b08534c2e238d0 diff --git a/source/core/frameformat.h b/source/core/frameformat.h index c55a0f30..669261ff 100644 --- a/source/core/frameformat.h +++ b/source/core/frameformat.h @@ -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];