2023-10-26 18:37:29 +02:00
|
|
|
#include "RenderTarget.h"
|
|
|
|
|
|
|
|
|
|
using namespace Seele;
|
|
|
|
|
using namespace Seele::Gfx;
|
|
|
|
|
|
2023-11-15 00:06:00 +01:00
|
|
|
RenderTargetAttachment::RenderTargetAttachment(PTexture2D texture,
|
2023-11-15 17:42:57 +01:00
|
|
|
SeAttachmentLoadOp loadOp,
|
|
|
|
|
SeAttachmentStoreOp storeOp,
|
|
|
|
|
SeAttachmentLoadOp stencilLoadOp,
|
|
|
|
|
SeAttachmentStoreOp stencilStoreOp)
|
2023-11-15 00:06:00 +01:00
|
|
|
: clear()
|
|
|
|
|
, componentFlags(0)
|
|
|
|
|
, loadOp(loadOp)
|
|
|
|
|
, storeOp(storeOp)
|
|
|
|
|
, stencilLoadOp(stencilLoadOp)
|
|
|
|
|
, stencilStoreOp(stencilStoreOp)
|
|
|
|
|
, texture(texture)
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
RenderTargetAttachment::~RenderTargetAttachment()
|
|
|
|
|
{
|
|
|
|
|
}
|