X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fcore%2Fframeformat.h;h=4662ae8f9d2d02ec8aebe576532f13e932d67ed8;hb=df9119a9bf2d348a513c515ed92953353da97b54;hp=90132092444488415a447b2840d03ad48c5fb58a;hpb=160e9eea29bd10034733d59507fa1bcca36be401;p=libs%2Fgl.git diff --git a/source/core/frameformat.h b/source/core/frameformat.h index 90132092..4662ae8f 100644 --- a/source/core/frameformat.h +++ b/source/core/frameformat.h @@ -8,8 +8,10 @@ namespace Msp { namespace GL { /** -Describes a single attachment of a framebuffer. The values are bitfields laid -as follows: +Describes a single attachment of a framebuffer, including the type and index +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 @@ -18,7 +20,7 @@ nnnn nn_f _sss _ccc └────────────╴Attachment index This information is presented for internal documentation purposes only; it is -inadvisable for programs to rely on it. +inadvisable for applications to rely on it. */ enum FrameAttachment: std::uint16_t { @@ -36,12 +38,12 @@ class FrameFormat private: enum { MAX_ATTACHMENTS = 7 }; - std::uint8_t count; - std::uint8_t samples; + std::uint8_t count = 0; + std::uint8_t samples = 0; FrameAttachment attachments[MAX_ATTACHMENTS]; public: - FrameFormat(); + FrameFormat() = default; FrameFormat(FrameAttachment); FrameFormat operator,(FrameAttachment) const;