summaryrefslogtreecommitdiffstats
path: root/src/plugins/renderers/rhi/renderer/rhirendertarget_p.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/renderers/rhi/renderer/rhirendertarget_p.h')
-rw-r--r--src/plugins/renderers/rhi/renderer/rhirendertarget_p.h15
1 files changed, 11 insertions, 4 deletions
diff --git a/src/plugins/renderers/rhi/renderer/rhirendertarget_p.h b/src/plugins/renderers/rhi/renderer/rhirendertarget_p.h
index bfb57568d..f699db687 100644
--- a/src/plugins/renderers/rhi/renderer/rhirendertarget_p.h
+++ b/src/plugins/renderers/rhi/renderer/rhirendertarget_p.h
@@ -15,7 +15,7 @@
// We mean it.
//
-#include <private/qrhi_p.h>
+#include <rhi/qrhi.h>
#include <rhihandle_types_p.h>
#include <private/attachmentpack_p.h>
@@ -30,9 +30,16 @@ struct RHIRenderTarget {
// Note: only used when rendering to a FBO
// as we don't want to remove the default framebuffer's rendertarget
// TODO: at some point separate render target and graphics pipeline as the former can be reused
- QRhiRenderTarget *renderTarget{};
- QRhiRenderPassDescriptor *renderPassDescriptor{};
- QRhiRenderBuffer *depthStencilBuffer{};
+ QRhiRenderTarget *renderTarget{ nullptr };
+ QRhiRenderPassDescriptor *renderPassDescriptor{ nullptr };
+ QRhiRenderBuffer *depthStencilBuffer{ nullptr };
+
+ enum class BackBuffer {
+ None,
+ Left,
+ Right,
+ };
+ BackBuffer backBuffer{ BackBuffer::None };
~RHIRenderTarget();
void cleanup();