*/
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];
throw invalid_operation("Sequence::render");
const FrameFormat &format = target_fbo->get_format();
- ClearValue clear_values[7];
+ ClearValue clear_values[FrameFormat::MAX_ATTACHMENTS];
unsigned i = 0;
Color default_color = (clear_colors.empty() ? Color(0.0f, 0.0f, 0.0f, 0.0f) : clear_colors.front());
ClearValue *cv = clear_values;