7#include <QtQuick/qtquickglobal.h>
8#include <QtQuick/qsgmaterialshader.h>
9#include <QtQuick/qsgmaterialtype.h>
10#include <QtQuick/qsgrendererinterface.h>
19 RequiresDeterminant = 0x0002,
20 RequiresFullMatrixExceptTranslate = 0x0004 | RequiresDeterminant,
21 RequiresFullMatrix = 0x0008 | RequiresFullMatrixExceptTranslate,
24#if QT_DEPRECATED_SINCE(6, 3)
26 "Qt 6 does not have custom shader compilation support. If the intention is to just disable batching, use NoBatching instead."
40 QSGMaterial::Flags
flags()
const {
return m_flags; }
The QSGMaterialShader class represents a graphics API independent shader program.
The QSGMaterial class encapsulates rendering state for a shader program.
virtual QSGMaterialShader * createShader(QSGRendererInterface::RenderMode renderMode) const =0
This function returns a new instance of a the QSGMaterialShader implementation used to render geometr...
QSGMaterial::Flags flags() const
Returns the material's flags.
virtual QSGMaterialType * type() const =0
This function is called by the scene graph to query an identifier that is unique to the QSGMaterialSh...
Flag
\value Blending Set this flag to true if the material requires blending to be enabled during renderin...
RenderMode
\value RenderMode2D Normal 2D rendering \value RenderMode2DNoDepthBuffer Normal 2D rendering with dep...
Combined button and popup list for selecting options.
#define Q_DECL_ENUMERATOR_DEPRECATED_X(x)
#define Q_DECLARE_FLAGS(Flags, Enum)
#define Q_DECLARE_OPERATORS_FOR_FLAGS(Flags)
static int compare(quint64 a, quint64 b)
The QSGMaterialType class is used as a unique type token in combination with QSGMaterial.