diff options
Diffstat (limited to 'examples/gui/doc/src/rhiwindow.qdoc')
-rw-r--r-- | examples/gui/doc/src/rhiwindow.qdoc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/examples/gui/doc/src/rhiwindow.qdoc b/examples/gui/doc/src/rhiwindow.qdoc index e3c6b83c16..3ee33c8002 100644 --- a/examples/gui/doc/src/rhiwindow.qdoc +++ b/examples/gui/doc/src/rhiwindow.qdoc @@ -4,6 +4,7 @@ /*! \example rhiwindow \title RHI Window Example + \examplecategory {Graphics} \brief This example shows how to create a minimal QWindow-based application using QRhi. @@ -426,6 +427,11 @@ QRhiShaderResourceBindings, continue to be valid all the time. It is only the underlying native resources that come and go over time. + Note also that we set a device pixel ratio on the image that matches + the window that we're drawing into. This ensures that the drawing code + can be DPR-agnostic, producing the same layout regardless of the DPR, + while also taking advantage of the additional pixels for improved fidelity. + \snippet rhiwindow/rhiwindow.cpp ensure-texture Once a QImage is generated and the QPainter-based drawing into it has |