Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qssgrhicontext.cpp File Reference

(c265ece0bf3f0478fc849190b485f968abd69a6f)

#include "qssgrhicontext_p.h"
#include "graphobjects/qssgrenderskymaterial_p.h"
#include <QtCore/qthread.h>
#include <QtCore/qvariant.h>
#include <QtGui/private/qrhi_p.h>
#include <QtQuick3DUtils/private/qquick3dprofiler_p.h>
#include <QtQuick3DUtils/private/qssgmesh_p.h>
#include <QtQuick3DUtils/private/qssgassert_p.h>
#include <QtQuick3DRuntimeRender/private/qssgrenderableimage_p.h>
#include <QtQuick3DRuntimeRender/private/qssgrendermesh_p.h>
#include <QtQuick3DRuntimeRender/private/qssgrenderimage_p.h>
#include <QtQuick3DRuntimeRender/private/qssgrenderbuffer_p.h>
#include <QtQuick3DUtils/private/qssgutils_p.h>
#include <qtquick3d_tracepoints_p.h>
#include <QtGui/qquaternion.h>
#include <memory>
Include dependency graph for qssgrhicontext.cpp:

Go to the source code of this file.

Namespaces

namespace  QSSGRhiHelpers

Typedefs

using SamplerInfo = QPair<QSSGRhiSamplerDescription, QRhiSampler*>

Functions

QT_BEGIN_NAMESPACE Q_TRACE_POINT (qtquick3d, QSSG_renderPass_entry, const QString &renderPass)
 Q_TRACE_POINT (qtquick3d, QSSG_renderPass_exit)
 Q_TRACE_POINT (qtquick3d, QSSG_drawIndexed, int indexCount, int instanceCount)
 Q_TRACE_POINT (qtquick3d, QSSG_draw, int vertexCount, int instanceCount)
QRhiVertexInputAttribute::Format QSSGRhiHelpers::toVertexInputFormat (QSSGRenderComponentType compType, quint32 numComps)
QRhiGraphicsPipeline::Topology QSSGRhiHelpers::toTopology (QSSGRenderDrawMode drawMode)
void QSSGRhiHelpers::bakeVertexInputLocations (QSSGRhiInputAssemblerState *ia, const QSSGRhiShaderPipeline &shadersshaders, int instanceBufferBinding)
QShaderDescription::VariableType QSSGRhiHelpers::samplerType (const QSSGRhiShaderPipeline &shadersshaders, const QByteArray &namename)
QRhiTexture * QSSGRhiHelpers::dummyTextureForSampler (QSSGRhiContext *rhiCtx, QShaderDescription::VariableType samplerType, QRhiResourceUpdateBatch *rub, int arraySize, const QSize &sizesize, const QColor &fillColor)
static QString getUBMemberSizeWarning (QLatin1StringView namename, qsizetype correctedSize, qsizetype requestedSize)
static QByteArray asLookupKey (QByteArrayView namename)
template<typename Predicate>
static void releaseAutoLodDataIf (QHash< const QSSGRenderModel *, QSSGRhiInstanceBufferData > &instanceBuffersPerModel, Predicate release)

Typedef Documentation

◆ SamplerInfo

Function Documentation

◆ asLookupKey()

QByteArray asLookupKey ( QByteArrayView name)
inlinestatic

Definition at line 1132 of file qssgrhicontext.cpp.

◆ getUBMemberSizeWarning()

QString getUBMemberSizeWarning ( QLatin1StringView name,
qsizetype correctedSize,
qsizetype requestedSize )
static

Definition at line 735 of file qssgrhicontext.cpp.

◆ Q_TRACE_POINT() [1/4]

Q_TRACE_POINT ( qtquick3d ,
QSSG_draw ,
int vertexCount,
int instanceCount )

◆ Q_TRACE_POINT() [2/4]

Q_TRACE_POINT ( qtquick3d ,
QSSG_drawIndexed ,
int indexCount,
int instanceCount )

◆ Q_TRACE_POINT() [3/4]

QT_BEGIN_NAMESPACE Q_TRACE_POINT ( qtquick3d ,
QSSG_renderPass_entry ,
const QString & renderPass )

◆ Q_TRACE_POINT() [4/4]

Q_TRACE_POINT ( qtquick3d ,
QSSG_renderPass_exit  )

◆ releaseAutoLodDataIf()

template<typename Predicate>
void releaseAutoLodDataIf ( QHash< const QSSGRenderModel *, QSSGRhiInstanceBufferData > & instanceBuffersPerModel,
Predicate release )
static

Definition at line 1664 of file qssgrhicontext.cpp.