6#include <QtCore/qfile.h>
7#include <QtQml/qqmlcontext.h>
8#include <QtQml/qqmlfile.h>
254 shaderPathKey.
append(
'>');
274 QMetaType::QVector2D,
275 QMetaType::QVector3D,
276 QMetaType::QVector4D,
285 QMetaType::QQuaternion,
286 QMetaType::QMatrix4x4
397 case QMetaType::Double:
398 case QMetaType::Float:
400 case QMetaType::Bool:
402 case QMetaType::QVector2D:
404 case QMetaType::QVector3D:
406 case QMetaType::QVector4D:
410 case QMetaType::QColor:
412 case QMetaType::QSize:
414 case QMetaType::QSizeF:
416 case QMetaType::QPoint:
418 case QMetaType::QPointF:
420 case QMetaType::QRect:
422 case QMetaType::QRectF:
424 case QMetaType::QQuaternion:
426 case QMetaType::QMatrix4x4:
474 case QMetaType::Double:
475 case QMetaType::Float:
477 case QMetaType::Bool:
479 case QMetaType::QVector2D:
481 case QMetaType::QVector3D:
483 case QMetaType::QVector4D:
487 case QMetaType::QColor:
489 case QMetaType::QSize:
491 case QMetaType::QSizeF:
493 case QMetaType::QPoint:
495 case QMetaType::QPointF:
497 case QMetaType::QRect:
499 case QMetaType::QRectF:
501 case QMetaType::QQuaternion:
503 case QMetaType::QMatrix4x4:
670 while (
p !=
nullptr) {
672 mat->setDynamicTextureMap(
this);
676 efx->setDynamicTextureMap(
this);
684 qWarning(
"A texture was defined out of Material or Effect");
bool isEmpty() const noexcept
Returns true if the byte array has size 0; otherwise returns false.
QByteArray & append(char c)
This is an overloaded member function, provided for convenience. It differs from the above function o...
The QColor class provides colors based on RGB, HSV or CMYK values.
The QMatrix4x4 class represents a 4x4 transformation matrix in 3D space.
QObject * parent() const
Returns a pointer to the parent object.
static QMetaObject::Connection connect(const QObject *sender, const char *signal, const QObject *receiver, const char *member, Qt::ConnectionType=Qt::AutoConnection)
\threadsafe
\inmodule QtCore\reentrant
\inmodule QtCore\reentrant
The QQmlContext class defines a context within a QML engine.
static QString urlToLocalFileOrQrc(const QString &)
If url is a local file returns a path suitable for passing to QFile.
The QQmlListProperty class allows applications to expose list-like properties of QObject-derived clas...
The QQuaternion class represents a quaternion consisting of a vector and scalar.
static void attachWatcherPriv(SceneContext *sceneContext, CallContext *callContext, Setter setter, QQuick3DObject *newO, QObject *oldO)
static QQuick3DShaderUtilsBuffer::TextureFormat mapRenderTextureFormat(QSSGRenderTextureFormat::Format fmt)
static QSSGRenderTextureFormat::Format mapTextureFormat(QQuick3DShaderUtilsBuffer::TextureFormat fmt)
void setFormat(TextureFormat format)
QSSGAllocateBuffer command
QQmlListProperty< QQuick3DShaderUtilsRenderCommand > commands
static qsizetype qmlCommandCount(QQmlListProperty< QQuick3DShaderUtilsRenderCommand > *list)
static QQuick3DShaderUtilsRenderCommand * qmlCommandAt(QQmlListProperty< QQuick3DShaderUtilsRenderCommand > *list, qsizetype index)
static qsizetype qmlShaderCount(QQmlListProperty< QQuick3DShaderUtilsShader > *list)
static void qmlAppendCommand(QQmlListProperty< QQuick3DShaderUtilsRenderCommand > *list, QQuick3DShaderUtilsRenderCommand *command)
QVector< QQuick3DShaderUtilsRenderCommand * > m_commands
static void qmlCommandClear(QQmlListProperty< QQuick3DShaderUtilsRenderCommand > *list)
static void qmlShaderClear(QQmlListProperty< QQuick3DShaderUtilsShader > *list)
QVarLengthArray< QQuick3DShaderUtilsShader *, 2 > m_shaders
static void qmlAppendShader(QQmlListProperty< QQuick3DShaderUtilsShader > *list, QQuick3DShaderUtilsShader *shader)
static QQuick3DShaderUtilsShader * qmlShaderAt(QQmlListProperty< QQuick3DShaderUtilsShader > *list, qsizetype index)
QQmlListProperty< QQuick3DShaderUtilsShader > shaders
QQuick3DTexture * texture
QQuick3DShaderUtilsTextureInput(QObject *p=nullptr)
QQuick3DTexture * m_texture
void setTexture(QQuick3DTexture *texture)
virtual ~QQuick3DShaderUtilsTextureInput()
\inmodule QtCore\reentrant
\inmodule QtCore\reentrant
\macro QT_RESTRICTED_CAST_FROM_ASCII
QByteArray toUtf8() const &
QString fileName(ComponentFormattingOptions options=FullyDecoded) const
constexpr size_type size() const noexcept
const T & at(qsizetype idx) const
The QVector2D class represents a vector or vertex in 2D space.
The QVector3D class represents a vector or vertex in 3D space.
The QVector4D class represents a vector or vertex in 4D space.
\qmltype Shader \inherits Object \inqmlmodule QtQuick3D
QSSGRenderShaderDataType uniformType(QMetaType type)
static constexpr QMetaType::Type qssg_metatype_list[]
ResolveFunction resolveShaderOverride
QByteArray resolveShader(const QUrl &fileUrl, const QQmlContext *context, QByteArray &shaderPathKey)
void setResolveFunction(ResolveFunction fn)
QByteArray uniformTypeName(QMetaType type)
MetaTypeList supportedMetatypes()
bool(*)(const QUrl &url, const QQmlContext *context, QByteArray &shaderData, QByteArray &shaderPathKey) ResolveFunction
Combined button and popup list for selecting options.
#define QByteArrayLiteral(str)
GLint GLsizei GLsizei GLenum format
#define qPrintable(string)
QVideoFrameFormat::PixelFormat fmt
QSSGRenderTextureFormat m_format