29 bool load(
const QUrl& qmlSource,
const QSize& pixelSize);
33 bool isValid()
const {
return _initialized; }
36 void releaseRhiResources();
37 bool ensureRhiTarget();
39 std::unique_ptr<QQuickRenderControl> _renderControl;
40 std::unique_ptr<QQuickWindow> _quickWindow;
41 std::unique_ptr<QQmlEngine> _qmlEngine;
42 std::unique_ptr<QQmlComponent> _qmlComponent;
43 QQuickItem* _rootItem =
nullptr;
46 std::unique_ptr<QRhiTexture> _texture;
47 std::unique_ptr<QRhiRenderBuffer> _depthStencil;
48 std::unique_ptr<QRhiTextureRenderTarget> _renderTarget;
49 std::unique_ptr<QRhiRenderPassDescriptor> _rpDesc;
52 bool _initialized =
false;