28 Q_DECLARE_PUBLIC(QRhiWidget)
30 TextureData texture()
const override;
31 QPlatformTextureList::Flags textureListFlags() override;
32 QPlatformBackingStoreRhiConfig rhiConfig()
const override;
33 void endCompose() override;
34 QImage grabFramebuffer() override;
38 void ensureTexture(
bool *changed);
39 bool invokeInitialize(QRhiCommandBuffer *cb);
40 void resetColorBufferObjects();
41 void resetRenderTargetObjects();
42 void releaseResources();
46 QPlatformBackingStoreRhiConfig config;
47 QRhiWidget::TextureFormat widgetTextureFormat = QRhiWidget::TextureFormat::RGBA8;
48 QRhiTexture::Format rhiTextureFormat = QRhiTexture::RGBA8;
51 bool autoRenderTarget =
true;
52 bool mirrorVertically =
false;
53 QBackingStoreRhiSupport offscreenRenderer;
54 bool textureInvalid =
false;
55 QRhiTexture *colorTexture =
nullptr;
56 QRhiRenderBuffer *msaaColorBuffer =
nullptr;
57 QRhiTexture *resolveTexture =
nullptr;
58 QRhiRenderBuffer *depthStencilBuffer =
nullptr;
59 QRhiTextureRenderTarget *renderTarget =
nullptr;
60 QRhiRenderPassDescriptor *renderPassDescriptor =
nullptr;
61 mutable QVector<QRhiResource *> pendingDeletes;