![]() |
Qt 6.x
The Qt SDK
|
#include <qbackingstoredefaultcompositor_p.h>
Public Member Functions | |
~QBackingStoreDefaultCompositor () | |
void | reset () |
QRhiTexture * | toTexture (const QPlatformBackingStore *backingStore, QRhi *rhi, QRhiResourceUpdateBatch *resourceUpdates, const QRegion &dirtyRegion, QPlatformBackingStore::TextureFlags *flags) const |
QPlatformBackingStore::FlushResult | flush (QPlatformBackingStore *backingStore, QRhi *rhi, QRhiSwapChain *swapchain, QWindow *window, qreal sourceDevicePixelRatio, const QRegion ®ion, const QPoint &offset, QPlatformTextureList *textures, bool translucentBackground) |
Definition at line 23 of file qbackingstoredefaultcompositor_p.h.
QBackingStoreDefaultCompositor::~QBackingStoreDefaultCompositor | ( | ) |
Definition at line 13 of file qbackingstoredefaultcompositor.cpp.
References reset().
QPlatformBackingStore::FlushResult QBackingStoreDefaultCompositor::flush | ( | QPlatformBackingStore * | backingStore, |
QRhi * | rhi, | ||
QRhiSwapChain * | swapchain, | ||
QWindow * | window, | ||
qreal | sourceDevicePixelRatio, | ||
const QRegion & | region, | ||
const QPoint & | offset, | ||
QPlatformTextureList * | textures, | ||
bool | translucentBackground | ||
) |
Definition at line 448 of file qbackingstoredefaultcompositor.cpp.
References QRhi::beginFrame(), Qt::black, BottomLeft, cb, QRhi::clipSpaceCorrMatrix(), QRhiSwapChain::createOrResize(), QRhiSwapChain::currentFrameCommandBuffer(), QRhiSwapChain::currentFrameRenderTarget(), QRhiSwapChain::currentPixelSize(), QMatrix4x4::data(), dpr(), QRhi::endFrame(), QPlatformBackingStore::FlushFailed, QPlatformBackingStore::FlushFailedDueToLostDevice, QPlatformBackingStore::FlushSuccess, QWindow::format(), QRhi::FrameOpDeviceLost, QRhi::FrameOpSuccess, QRhi::FrameOpSwapChainOutOfDate, QWindowPrivate::get(), QPlatformBackingStore::graphicsBuffer(), QSize::height(), i, QRhi::isYUpInFramebuffer(), QRhi::isYUpInNDC(), QWindowPrivate::lastComposeTime, QRhiSwapChain::LeftBuffer, QPlatformTextureList::NeedsPremultipliedAlphaBlending, QRhi::nextResourceUpdateBatch(), QPlatformGraphicsBuffer::OriginBottomLeft, QRhiTexture::pixelSize(), prepareDrawForRenderToTextureWidget(), Q_ASSERT, qCDebug, qt_window_private(), qWarning, render(), reset(), QVarLengthArray< T, Prealloc >::resize(), QRhiSwapChain::RightBuffer, scaledOffset(), scaledRect(), scaledRegion(), QVLABaseBase::size(), sourceTransform(), QPlatformTextureList::StacksOnTop, QElapsedTimer::start(), QSurfaceFormat::stereo(), QRhiSwapChain::surfacePixelSize(), QPlatformGraphicsBuffer::SWReadAccess, QPlatformBackingStore::TextureFlip, QPlatformBackingStore::TexturePremultiplied, QPlatformBackingStore::TextureSwizzle, toBottomLeftRect(), QImage::toImageFormat(), TopLeft, toTexture(), QRect::translated(), Qt::transparent, QSize::width(), window(), and QRhiSwapChain::window().
Referenced by QPlatformBackingStore::rhiFlush().
void QBackingStoreDefaultCompositor::reset | ( | ) |
Definition at line 18 of file qbackingstoredefaultcompositor.cpp.
References d.
Referenced by ~QBackingStoreDefaultCompositor(), flush(), and QPlatformBackingStore::graphicsDeviceReportedLost().
QRhiTexture * QBackingStoreDefaultCompositor::toTexture | ( | const QPlatformBackingStore * | backingStore, |
QRhi * | rhi, | ||
QRhiResourceUpdateBatch * | resourceUpdates, | ||
const QRegion & | dirtyRegion, | ||
QPlatformBackingStore::TextureFlags * | flags | ||
) | const |
Definition at line 38 of file qbackingstoredefaultcompositor.cpp.
References QPlatformBackingStore::toImage(), and toTexture().
Referenced by flush(), toTexture(), and QPlatformBackingStore::toTexture().