5#include <private/qsgdefaultrendercontext_p.h>
6#include <private/qsgmaterialshader_p.h>
7#include <private/qsgtexturematerial_p.h>
9#include <QtCore/qmath.h>
61 memcpy(
buf->data() + 64 + 8, &
v, 8);
158 return x == (
x & -
x);
\inmodule QtCore\reentrant
bool isFeatureSupported(QRhi::Feature feature) const
void setMipmapFiltering(QSGTexture::Filtering filtering) override
void setVerticalWrapMode(QSGTexture::WrapMode wrapMode) override
void setMaterialTexture(QSGTexture *texture) override
bool updateMaterialBlending() override
void setFiltering(QSGTexture::Filtering filtering) override
QSGDefaultInternalImageNode(QSGDefaultRenderContext *rc)
QSGTexture * materialTexture() const override
void setHorizontalWrapMode(QSGTexture::WrapMode wrapMode) override
bool supportsWrap(const QSize &size) const override
void updateMaterialAntialiasing() override
QRhi * rhi() const override
void setMaterial(QSGMaterial *material)
Sets the material of this geometry node to material.
void setOpaqueMaterial(QSGMaterial *material)
Sets the opaque material of this geometry to material.
Encapsulates the current rendering state during a call to QSGMaterialShader::updateUniformData() and ...
The QSGMaterialShader class represents a graphics API independent shader program.
void setShaderFileName(Stage stage, const QString &filename)
Sets the filename for the shader for the specified stage.
The QSGMaterial class encapsulates rendering state for a shader program.
QSGMaterial::Flags flags() const
Returns the material's flags.
void setFlag(Flags flags, bool on=true)
Sets the flags flags on this material if on is true; otherwise clears the attribute.
@ RequiresFullMatrixExceptTranslate
void markDirty(DirtyState bits)
Notifies all connected renderers that the node has dirty bits.
QSGTexture::WrapMode verticalWrapMode() const
Returns this material's vertical wrap mode.
void setFiltering(QSGTexture::Filtering filteringType)
Sets the filtering to filtering.
void setVerticalWrapMode(QSGTexture::WrapMode mode)
Sets the vertical wrap mode to mode.
void setHorizontalWrapMode(QSGTexture::WrapMode mode)
Sets the horizontal wrap mode to mode.
QSGTexture::Filtering filtering() const
Returns this material's filtering mode.
void setMipmapFiltering(QSGTexture::Filtering filteringType)
Sets the mipmap mode to filtering.
void setTexture(QSGTexture *texture)
Sets the texture of this material to texture.
QSGTexture::WrapMode horizontalWrapMode() const
Returns this material's horizontal wrap mode.
QSGTexture::Filtering mipmapFiltering() const
Returns this material's mipmap filtering mode.
QSGTexture * texture() const
Returns this texture material's texture.
RenderMode
\value RenderMode2D Normal 2D rendering \value RenderMode2DNoDepthBuffer Normal 2D rendering with dep...
QSGSmoothTextureMaterial()
QSGMaterialType * type() const override
void setTexture(QSGTexture *texture)
QSGMaterialShader * createShader(QSGRendererInterface::RenderMode renderMode) const override
bool updateUniformData(RenderState &state, QSGMaterial *newMaterial, QSGMaterial *oldMaterial) override
This function is called by the scene graph to get the contents of the shader program's uniform buffer...
Filtering
Specifies how sampling of texels should filter when texture coordinates are not pixel aligned.
WrapMode
Specifies how the sampler should treat texture coordinates.
The QVector2D class represents a vector or vertex in 2D space.
SmoothTextureMaterialRhiShader()
bool updateUniformData(RenderState &state, QSGMaterial *newMaterial, QSGMaterial *oldMaterial) override
This function is called by the scene graph to get the contents of the shader program's uniform buffer...
Combined button and popup list for selecting options.
GLsizei const GLfloat * v
[13]
GLint GLint GLint GLint GLint x
[0]
GLenum GLuint GLintptr GLsizeiptr size
[1]
GLenum GLuint GLenum GLsizei const GLchar * buf
GLfloat GLfloat GLfloat alpha
static bool isPowerOfTwo(int x)
static bool isPowerOfTwo(int x)
#define QStringLiteral(str)
The QSGMaterialType class is used as a unique type token in combination with QSGMaterial.