Graphics/FrameGraph: Add FramePassAttachmentSize enum instead of boolean

This commit is contained in:
SirLynix
2022-11-22 18:16:06 +01:00
committed by Jérôme Leclercq
parent d6b9b4327a
commit d7eab778fb
8 changed files with 48 additions and 30 deletions

View File

@@ -14,13 +14,19 @@
namespace Nz
{
enum class FramePassAttachmentSize
{
Fixed,
SwapchainFactor
};
struct FramePassAttachment
{
std::string name;
PixelFormat format;
FramePassAttachmentSize size = FramePassAttachmentSize::SwapchainFactor;
unsigned int width = 100'000;
unsigned int height = 100'000;
bool hasFixedSize = false;
};
}