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