The values are bitfields laid as follows:
-nnnn nn_f _sss _ccc
- │ │ │ └╴Number of components
+nnnn nn_f _sss rccc
+ │ │ │ │ └╴Number of components
+ │ │ │ └───╴Reverse order flag
│ │ └─────╴Size of one component
│ └──────────╴Floating-point flag
└────────────╴Attachment index
*/
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];