![]() |
Qt 6.x
The Qt SDK
|
#include <qrhinull_p.h>
Public Attributes | |
QRhiNullNativeHandles | nativeHandlesStruct |
QRhiSwapChain * | currentSwapChain = nullptr |
QNullCommandBuffer | offscreenCommandBuffer |
![]() | |
QRhi * | q |
bool | debugMarkers = false |
int | currentFrameSlot = 0 |
bool | inFrame = false |
Additional Inherited Members | |
![]() | |
static const QRhiShaderResourceBinding::Data * | shaderResourceBindingData (const QRhiShaderResourceBinding &binding) |
static QRhiShaderResourceBinding::Data * | shaderResourceBindingData (QRhiShaderResourceBinding &binding) |
static bool | sortedBindingLessThan (const QRhiShaderResourceBinding &a, const QRhiShaderResourceBinding &b) |
![]() | |
static const int | MAX_SHADER_CACHE_ENTRIES = 128 |
Definition at line 172 of file qrhinull_p.h.
QRhiNull::QRhiNull | ( | QRhiNullInitParams * | params | ) |
Definition at line 42 of file qrhinull.cpp.
References Q_UNUSED.
|
overridevirtual |
Implements QRhiImplementation.
Definition at line 549 of file qrhinull.cpp.
References cb, Q_UNUSED, and resourceUpdate().
|
overridevirtual |
Implements QRhiImplementation.
Definition at line 343 of file qrhinull.cpp.
|
overridevirtual |
Implements QRhiImplementation.
Definition at line 359 of file qrhinull.cpp.
References currentSwapChain, QRhi::FrameOpSuccess, and Q_UNUSED.
|
overridevirtual |
Implements QRhiImplementation.
Definition at line 375 of file qrhinull.cpp.
References cb, QRhi::FrameOpSuccess, offscreenCommandBuffer, and Q_UNUSED.
|
overridevirtual |
Implements QRhiImplementation.
Definition at line 522 of file qrhinull.cpp.
References cb, QNullTextureRenderTarget::create(), QNullRenderTargetData::currentResIdList, QNullTextureRenderTarget::d, QRhiTextureRenderTarget::description(), Q_UNUSED, QRHI_RES, QRhiResource::resourceType(), resourceUpdate(), and QRhiResource::TextureRenderTarget.
|
overridevirtual |
Implements QRhiImplementation.
Definition at line 93 of file qrhinull.cpp.
|
overridevirtual |
|
overridevirtual |
Implements QRhiImplementation.
Definition at line 68 of file qrhinull.cpp.
|
overridevirtual |
Implements QRhiImplementation.
Definition at line 222 of file qrhinull.cpp.
|
overridevirtual |
Implements QRhiImplementation.
Definition at line 217 of file qrhinull.cpp.
|
overridevirtual |
Implements QRhiImplementation.
Definition at line 190 of file qrhinull.cpp.
|
overridevirtual |
Implements QRhiImplementation.
Definition at line 204 of file qrhinull.cpp.
|
overridevirtual |
Implements QRhiImplementation.
Definition at line 227 of file qrhinull.cpp.
|
overridevirtual |
Implements QRhiImplementation.
Definition at line 63 of file qrhinull.cpp.
|
overridevirtual |
Implements QRhiImplementation.
Definition at line 197 of file qrhinull.cpp.
|
overridevirtual |
|
overridevirtual |
Implements QRhiImplementation.
Definition at line 306 of file qrhinull.cpp.
|
overridevirtual |
Implements QRhiImplementation.
Definition at line 312 of file qrhinull.cpp.
|
overridevirtual |
Implements QRhiImplementation.
Definition at line 317 of file qrhinull.cpp.
|
overridevirtual |
Implements QRhiImplementation.
Definition at line 54 of file qrhinull.cpp.
|
overridevirtual |
Implements QRhiImplementation.
Definition at line 329 of file qrhinull.cpp.
|
overridevirtual |
Implements QRhiImplementation.
Definition at line 285 of file qrhinull.cpp.
References cb, instanceCount, and Q_UNUSED.
|
overridevirtual |
Implements QRhiImplementation.
Definition at line 295 of file qrhinull.cpp.
References cb, instanceCount, and Q_UNUSED.
|
overridevirtual |
Implements QRhiImplementation.
Definition at line 152 of file qrhinull.cpp.
References info, and QByteArrayLiteral.
|
overridevirtual |
Implements QRhiImplementation.
Definition at line 558 of file qrhinull.cpp.
References cb, and resourceUpdate().
|
overridevirtual |
Implements QRhiImplementation.
Definition at line 348 of file qrhinull.cpp.
|
overridevirtual |
Implements QRhiImplementation.
Definition at line 366 of file qrhinull.cpp.
References currentSwapChain, QNullSwapChain::frameCount, QRhi::FrameOpSuccess, Q_UNUSED, and QRHI_RES.
|
overridevirtual |
Implements QRhiImplementation.
Definition at line 382 of file qrhinull.cpp.
References QRhi::FrameOpSuccess, and Q_UNUSED.
|
overridevirtual |
Implements QRhiImplementation.
Definition at line 543 of file qrhinull.cpp.
References cb, and resourceUpdate().
|
overridevirtual |
Implements QRhiImplementation.
Definition at line 388 of file qrhinull.cpp.
References QRhi::FrameOpSuccess.
|
overridevirtual |
Implements QRhiImplementation.
Definition at line 88 of file qrhinull.cpp.
|
overridevirtual |
Implements QRhiImplementation.
Definition at line 175 of file qrhinull.cpp.
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
Implements QRhiImplementation.
Definition at line 78 of file qrhinull.cpp.
|
overridevirtual |
Implements QRhiImplementation.
Definition at line 83 of file qrhinull.cpp.
|
overridevirtual |
Implements QRhiImplementation.
Definition at line 353 of file qrhinull.cpp.
|
overridevirtual |
Implements QRhiImplementation.
Definition at line 164 of file qrhinull.cpp.
|
overridevirtual |
Implements QRhiImplementation.
Definition at line 147 of file qrhinull.cpp.
References nativeHandlesStruct.
|
overridevirtual |
Implements QRhiImplementation.
Definition at line 337 of file qrhinull.cpp.
|
overridevirtual |
Implements QRhiImplementation.
Definition at line 180 of file qrhinull.cpp.
|
overridevirtual |
Implements QRhiImplementation.
Definition at line 170 of file qrhinull.cpp.
|
overridevirtual |
Implements QRhiImplementation.
Definition at line 111 of file qrhinull.cpp.
References QRhi::FramesInFlight, QRhi::MaxAsyncReadbackFrames, QRhi::MaxColorAttachments, QRhi::MaxThreadGroupsPerDimension, QRhi::MaxThreadGroupX, QRhi::MaxThreadGroupY, QRhi::MaxThreadGroupZ, QRhi::MaxThreadsPerThreadGroup, QRhi::MaxUniformBufferRange, QRhi::MaxVertexInputs, QRhi::MaxVertexOutputs, QRhi::TextureArraySizeMax, QRhi::TextureSizeMax, and QRhi::TextureSizeMin.
|
overridevirtual |
Implements QRhiImplementation.
Definition at line 459 of file qrhinull.cpp.
References QRhiResourceUpdateBatchPrivate::activeBufferOpCount, QRhiResourceUpdateBatchPrivate::activeTextureOpCount, QRhiResourceUpdateBatchPrivate::BufferOp::buf, QRhiResourceUpdateBatchPrivate::bufferOps, cb, QRhiBufferData::constData(), QRhiResourceUpdateBatchPrivate::TextureOp::Copy, QRhiSwapChain::currentPixelSize(), currentSwapChain, QRhiReadbackResult::data, QRhiResourceUpdateBatchPrivate::BufferOp::data, QNullBuffer::data, QRhiResourceUpdateBatchPrivate::TextureOp::dst, QRhiResourceUpdateBatchPrivate::BufferOp::DynamicUpdate, QRhiTexture::format(), QRhiResourceUpdateBatchPrivate::free(), QRhiResourceUpdateBatchPrivate::TextureOp::GenMips, QRhiResourceUpdateBatchPrivate::get(), QNullTexture::image, QRhiReadbackDescription::layer(), QRhiReadbackDescription::level(), QRhiResourceUpdateBatchPrivate::BufferOp::offset, QRhiTexture::pixelSize(), Q_ASSERT, Q_UNUSED, QRHI_RES, QRhiResourceUpdateBatchPrivate::TextureOp::rb, QRhiResourceUpdateBatchPrivate::BufferOp::Read, QRhiResourceUpdateBatchPrivate::TextureOp::Read, QRhiResourceUpdateBatchPrivate::BufferOp::readSize, QByteArray::resize(), QRhiResourceUpdateBatchPrivate::BufferOp::result, QRhiResourceUpdateBatchPrivate::TextureOp::result, QRhiTexture::RGBA8, simulateTextureCopy(), simulateTextureGenMips(), simulateTextureUpload(), QRhiBufferData::size(), QRhiResourceUpdateBatchPrivate::TextureOp::src, QRhiResourceUpdateBatchPrivate::BufferOp::StaticUpload, QRhiReadbackDescription::texture(), QRhiImplementation::textureFormatInfo(), QRhiResourceUpdateBatchPrivate::textureOps, QRhiResourceUpdateBatchPrivate::BufferOp::type, QRhiResourceUpdateBatchPrivate::TextureOp::type, and QRhiResourceUpdateBatchPrivate::TextureOp::Upload.
Referenced by beginComputePass(), beginPass(), endComputePass(), and endPass().
|
overridevirtual |
Implements QRhiImplementation.
Definition at line 273 of file qrhinull.cpp.
|
overridevirtual |
Implements QRhiImplementation.
Definition at line 323 of file qrhinull.cpp.
|
overridevirtual |
Implements QRhiImplementation.
Definition at line 232 of file qrhinull.cpp.
|
overridevirtual |
|
overridevirtual |
Implements QRhiImplementation.
Definition at line 267 of file qrhinull.cpp.
|
overridevirtual |
Implements QRhiImplementation.
Definition at line 238 of file qrhinull.cpp.
|
overridevirtual |
Implements QRhiImplementation.
Definition at line 279 of file qrhinull.cpp.
|
overridevirtual |
Implements QRhiImplementation.
Definition at line 248 of file qrhinull.cpp.
|
overridevirtual |
Implements QRhiImplementation.
Definition at line 261 of file qrhinull.cpp.
References cb, Q_UNUSED, and viewport().
void QRhiNull::simulateTextureCopy | ( | const QRhiResourceUpdateBatchPrivate::TextureOp & | u | ) |
Definition at line 435 of file qrhinull.cpp.
References QPainter::CompositionMode_Source, QRhiResourceUpdateBatchPrivate::TextureOp::desc, QRhiTextureCopyDescription::destinationLayer(), QRhiTextureCopyDescription::destinationLevel(), QRhiTextureCopyDescription::destinationTopLeft(), QPainter::drawImage(), QRhiResourceUpdateBatchPrivate::TextureOp::dst, QNullTexture::image, QSize::isEmpty(), painter, QRhiTextureCopyDescription::pixelSize(), QRhiTexture::pixelSize(), QRHI_RES, QPainter::setCompositionMode(), QRhiTextureCopyDescription::sourceLayer(), QRhiTextureCopyDescription::sourceLevel(), QRhiTextureCopyDescription::sourceTopLeft(), and QRhiResourceUpdateBatchPrivate::TextureOp::src.
Referenced by resourceUpdate().
void QRhiNull::simulateTextureGenMips | ( | const QRhiResourceUpdateBatchPrivate::TextureOp & | u | ) |
Definition at line 450 of file qrhinull.cpp.
References QRhiResourceUpdateBatchPrivate::TextureOp::dst, QNullTexture::image, QRhiTexture::pixelSize(), and QRHI_RES.
Referenced by resourceUpdate().
void QRhiNull::simulateTextureUpload | ( | const QRhiResourceUpdateBatchPrivate::TextureOp & | u | ) |
Definition at line 393 of file qrhinull.cpp.
References QPainter::CompositionMode_Source, QPainter::drawImage(), QRhiResourceUpdateBatchPrivate::TextureOp::dst, QSize::height(), QNullTexture::image, QSize::isEmpty(), QRhi::MAX_MIP_LEVELS, painter, QRhiTexture::pixelSize(), QRHI_RES, QPainter::setCompositionMode(), QVLABaseBase::size(), QRhiResourceUpdateBatchPrivate::TextureOp::subresDesc, QSize::width(), QPoint::x(), and QPoint::y().
Referenced by resourceUpdate().
|
overridevirtual |
Implements QRhiImplementation.
Definition at line 159 of file qrhinull.cpp.
|
overridevirtual |
Implements QRhiImplementation.
Definition at line 58 of file qrhinull.cpp.
|
overridevirtual |
Implements QRhiImplementation.
Definition at line 73 of file qrhinull.cpp.
QRhiSwapChain* QRhiNull::currentSwapChain = nullptr |
Definition at line 289 of file qrhinull_p.h.
Referenced by beginFrame(), endFrame(), and resourceUpdate().
QRhiNullNativeHandles QRhiNull::nativeHandlesStruct |
Definition at line 288 of file qrhinull_p.h.
Referenced by nativeHandles().
QNullCommandBuffer QRhiNull::offscreenCommandBuffer |
Definition at line 290 of file qrhinull_p.h.
Referenced by beginOffscreenFrame().