if(samples<tmpl.get_required_multisample())
throw invalid_operation("SequenceBuilder::create_frame_format");
- PixelComponents color_comp = (tmpl.get_alpha() ? RGBA : RGB);
DataType color_type = (tmpl.get_hdr() ? HALF_FLOAT : UNSIGNED_BYTE);
- PixelFormat color_pf = make_pixelformat(color_comp, color_type);
+ PixelFormat color_pf = make_pixelformat(RGBA, color_type);
return (COLOR_ATTACHMENT,color_pf, DEPTH_ATTACHMENT).set_samples(samples);
}
void SequenceTemplate::Loader::init_actions()
{
add("hdr", &SequenceTemplate::hdr);
- add("alpha", &SequenceTemplate::alpha);
add("clear", &Loader::clear);
add("effect", &Loader::effect);
add("multisample", &Loader::multisample);
};
bool hdr = false;
- bool alpha = false;
unsigned required_multisample = 0;
unsigned max_multisample = 0;
std::vector<Renderable> renderables;
~SequenceTemplate();
bool get_hdr() const { return hdr; }
- bool get_alpha() const { return alpha; }
unsigned get_required_multisample() const { return required_multisample; }
unsigned get_maximum_multisample() const { return max_multisample; }
const std::vector<Renderable> &get_renderables() const { return renderables; }