diff options
author | Alexander Busse <alexander.busse@kdab.com> | 2023-02-08 20:20:14 +0100 |
---|---|---|
committer | Mike Krus <mike.krus@kdab.com> | 2023-11-09 09:18:24 +0000 |
commit | ca30b206ccbd93f2304bbfa630a267d3e3ce14fb (patch) | |
tree | 55dbea09900177281b0bbdda81c80b3274aadd3f /src/render/frontend | |
parent | bf1502fc1fd309bd9c4b127fb600fd4b2f2ce5ab (diff) |
Add ability to target Left/Right back buffer to use with stereo mode
RenderTargetOutput adds enums to target stereo buffers.
Change-Id: I7d57ebbad200772e526416d34e2a12135abcec93
Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
Diffstat (limited to 'src/render/frontend')
-rw-r--r-- | src/render/frontend/qrendertargetoutput.cpp | 12 | ||||
-rw-r--r-- | src/render/frontend/qrendertargetoutput.h | 4 |
2 files changed, 15 insertions, 1 deletions
diff --git a/src/render/frontend/qrendertargetoutput.cpp b/src/render/frontend/qrendertargetoutput.cpp index ed83904ca..3be19a2b4 100644 --- a/src/render/frontend/qrendertargetoutput.cpp +++ b/src/render/frontend/qrendertargetoutput.cpp @@ -20,6 +20,9 @@ namespace Qt3DRender { that is attached to render target. In addition to the attachment point, texture miplevel, layer and cubemap face can be specified. The texture attached to the QRenderTargetOutput must be compatible with the given parameters. + + \note Left and Right attachment points are special values. They do not refer to + render target objects to be either of the back buffers used for stereo rendering. */ /*! @@ -35,6 +38,9 @@ namespace Qt3DRender { that is attached to render target. In addition to the attachment point, texture miplevel, layer and cubemap face can be specified. The texture attached to the RenderTargetOutput must be compatible with the given parameters. + + \note Left and Right attachment points are special values. They do not refer to + render target objects to be either of the back buffers used for stereo rendering. */ /*! @@ -61,6 +67,8 @@ namespace Qt3DRender { \value Depth Depth attachment point \value Stencil Stencil attachment point \value DepthStencil DepthStencil attachment point + \value Left Back Left Draw Buffer + \value Right Back Right Draw Buffer */ /*! @@ -86,6 +94,8 @@ namespace Qt3DRender { \li RenderTargetOutput.Depth \li RenderTargetOutput.Stencil \li RenderTargetOutput.DepthStencil + \li RenderTargetOutput.Left + \li RenderTargetOutput.Right \endlist \sa Qt3DRender::QRenderTargetOutput::AttachmentPoint @@ -123,6 +133,8 @@ namespace Qt3DRender { /*! \property QRenderTargetOutput::attachmentPoint Holds the attachment point of the QRenderTargetOutput. + + */ /*! diff --git a/src/render/frontend/qrendertargetoutput.h b/src/render/frontend/qrendertargetoutput.h index 5a574692e..d2e847773 100644 --- a/src/render/frontend/qrendertargetoutput.h +++ b/src/render/frontend/qrendertargetoutput.h @@ -44,7 +44,9 @@ public: Color15, Depth, Stencil, - DepthStencil + DepthStencil, + Left, + Right }; Q_ENUM(AttachmentPoint) // LCOV_EXCL_LINE |