src/engine/frame.cpp
static void createFramebuffers(Frame& frame, uvec2 const size, Samples const _aa)
{
	ASSERT(_aa != Samples::None);

	frame.ssfb.create("Frame::ssfb");
	frame.color.create("Frame::color", size);
	frame.depthStencil.create("Frame::depthStencil", size);
	frame.ssfb.attach(frame.color, Attachment::Color0);
	frame.ssfb.attach(frame.depthStencil, Attachment::DepthStencil);

	if (_aa != Samples::_1) {
		frame.msfb.create("Frame::msfb");
		frame.colorMS.create("Frame::colorMS", size, _aa);
		frame.depthStencilMS.create("Frame::depthStencilMS", size, _aa);
		frame.msfb.attach(frame.colorMS, Attachment::Color0);
		frame.msfb.attach(frame.depthStencilMS, Attachment::DepthStencil);
	}
}
// Initialize Frame framebuffers and their attachments for a specified AA mode.
Initialize Frame framebuffers and their attachments for a specified AA mode.
Initialize Frame framebuffers and their attachments for a specified AA mode .
static void createFramebuffers(Frame& frame, uvec2 const size, Samples const _aa)
{
	ASSERT(_aa != Samples::None);
	frame.ssfb.create("Frame::ssfb");
	frame.color.create("Frame::color", size);
	frame.depthStencil.create("Frame::depthStencil", size);
	frame.ssfb.attach(frame.color, Attachment::Color0);
	frame.ssfb.attach(frame.depthStencil, Attachment::DepthStencil);
	if (_aa != Samples::_1) {
		frame.msfb.create("Frame::msfb");
		frame.colorMS.create("Frame::colorMS", size, _aa);
		frame.depthStencilMS.create("Frame::depthStencilMS", size, _aa);
		frame.msfb.attach(frame.colorMS, Attachment::Color0);
		frame.msfb.attach(frame.depthStencilMS, Attachment::DepthStencil);
	}
}
static void createFramebuffers ( Frame & frame , uvec2 const size , Samples const _aa ) { ASSERT ( _aa != Samples :: None ) ; frame . ssfb . create ( " " ) ; frame . color . create ( " " , size ) ; frame . depthStencil . create ( " " , size ) ; frame . ssfb . attach ( frame . color , Attachment :: Color0 ) ; frame . ssfb . attach ( frame . depthStencil , Attachment :: DepthStencil ) ; if ( _aa != Samples :: _1 ) { frame . msfb . create ( " " ) ; frame . colorMS . create ( " " , size , _aa ) ; frame . depthStencilMS . create ( " " , size , _aa ) ; frame . msfb . attach ( frame . colorMS , Attachment :: Color0 ) ; frame . msfb . attach ( frame . depthStencilMS , Attachment :: DepthStencil ) ; } }
Initialize Frame framebuffers and their attachments for a specified AA mode.
Initialize Frame framebuffers and their attachments for a specified AA mode .