X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fcore%2Fframeformat.h;h=669261ff6f49582b5e663d2d8fee756e3c329408;hp=4662ae8f9d2d02ec8aebe576532f13e932d67ed8;hb=7ef75a4c4dbfc437e466381dd67c23357e607b82;hpb=190a7e11237351f6b730c28f7b16f183e8adc69c diff --git a/source/core/frameformat.h b/source/core/frameformat.h index 4662ae8f..669261ff 100644 --- a/source/core/frameformat.h +++ b/source/core/frameformat.h @@ -13,8 +13,9 @@ of the attachment point and the format of the attached texture. 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 @@ -35,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];