struct FrameBufferAttachment
{
std::unique_ptr<Image> AttachmentImage;
//std::unique_ptr<ImageView> AttachmentImageView;
AttachmentType Type = AttachmentType::Color;
};
struct FrameBuffer
{
//std::vector< FrameBufferAttachment> FrameBufferColorAttachments;
FrameBufferAttachment DepthStencilAttachment;
VkFramebuffer framebuffer;
};
std::vector<FrameBuffer> frameBuffers;
I need help with this as I can't figure out what the problem is. I get error C2672: 'std::construct_at': no matching overloaded function found
but if I comment out FrameBufferAttachment DepthStencilAttachment;
then the error goes away.
If I change the unique pointer to a raw pointer then the error goes away too. So I must be using the unique pointer wrong.
This is how I use it in code
FrameBuffer frameBuffer;
frameBuffers.push_back(frameBuffer);
If I don't push it then no error.
Any ideas?