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,
|
2024-01-31 09:49:53 +01:00
|
|
|
SeImageLayout initialLayout,
|
|
|
|
|
SeImageLayout finalLayout,
|
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)
|
2024-01-31 09:49:53 +01:00
|
|
|
, texture(texture)
|
|
|
|
|
, initialLayout(initialLayout)
|
|
|
|
|
, finalLayout(finalLayout)
|
2023-11-15 00:06:00 +01:00
|
|
|
, loadOp(loadOp)
|
|
|
|
|
, storeOp(storeOp)
|
|
|
|
|
, stencilLoadOp(stencilLoadOp)
|
|
|
|
|
, stencilStoreOp(stencilStoreOp)
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
2024-02-01 10:21:36 +01:00
|
|
|
RenderTargetAttachment::RenderTargetAttachment(PViewport viewport,
|
|
|
|
|
SeImageLayout initialLayout,
|
|
|
|
|
SeImageLayout finalLayout,
|
|
|
|
|
SeAttachmentLoadOp loadOp,
|
|
|
|
|
SeAttachmentStoreOp storeOp,
|
|
|
|
|
SeAttachmentLoadOp stencilLoadOp,
|
|
|
|
|
SeAttachmentStoreOp stencilStoreOp)
|
|
|
|
|
: clear()
|
|
|
|
|
, componentFlags(0)
|
|
|
|
|
, viewport(viewport)
|
|
|
|
|
, initialLayout(initialLayout)
|
|
|
|
|
, finalLayout(finalLayout)
|
|
|
|
|
, loadOp(loadOp)
|
|
|
|
|
, storeOp(storeOp)
|
|
|
|
|
, stencilLoadOp(stencilLoadOp)
|
|
|
|
|
, stencilStoreOp(stencilStoreOp)
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
2023-11-15 00:06:00 +01:00
|
|
|
RenderTargetAttachment::~RenderTargetAttachment()
|
|
|
|
|
{
|
|
|
|
|
}
|