Graphics/FrameGraph: Add FramePassAttachmentSize enum instead of boolean
This commit is contained in:
committed by
Jérôme Leclercq
parent
d6b9b4327a
commit
d7eab778fb
@@ -85,11 +85,11 @@ namespace Nz
|
||||
{
|
||||
std::string name;
|
||||
std::shared_ptr<Texture> texture;
|
||||
FramePassAttachmentSize size;
|
||||
PixelFormat format;
|
||||
TextureUsageFlags usage;
|
||||
unsigned int width;
|
||||
unsigned int height;
|
||||
bool hasFixedSize;
|
||||
};
|
||||
|
||||
std::shared_ptr<CommandPool> m_commandPool;
|
||||
|
||||
@@ -88,10 +88,10 @@ namespace Nz
|
||||
{
|
||||
std::string name;
|
||||
PixelFormat format;
|
||||
FramePassAttachmentSize size;
|
||||
TextureUsageFlags usage;
|
||||
unsigned int width;
|
||||
unsigned int height;
|
||||
bool hasFixedSize;
|
||||
};
|
||||
|
||||
struct WorkData
|
||||
|
||||
@@ -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;
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user