7#include "private/qsgvideotexture_p.h"
26 if (
state.isMatrixDirty()) {
27 memcpy(
buf->data(),
state.combinedMatrix().constData(), 64);
31 if (
state.isOpacityDirty()) {
33 m->mOpacity =
state.opacity();
34 memcpy(
buf->data() + 64, &
m->mOpacity, 4);
39 memcpy(
buf->data() + 64 + 4, &mUScale, 4);
40 memcpy(
buf->data() + 64 + 4 + 4, &mVScale, 4);
61 m->mTexture->setNativeObject(
m->mCurrentTexture,
m->mCurrentFrame.size());
62 m->mTexture->commitTextureOperations(
state.rhi(),
state.resourceUpdateBatch());
Encapsulates the current rendering state during a call to QSGMaterialShader::updateUniformData() and ...
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.
void updateSampledImage(RenderState &state, int binding, QSGTexture **texture, QSGMaterial *newMaterial, QSGMaterial *oldMaterial) override
This function is called by the scene graph to prepare use of sampled images in the shader,...
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...
void setUVScale(float uScale, float vScale)
QSGVivanteVideoMaterialShader()
void reset(T *other=nullptr) noexcept(noexcept(Cleanup::cleanup(std::declval< T * >())))
Deletes the existing object it is pointing to (if any), and sets its pointer to other.
GLenum GLuint GLenum GLsizei const GLchar * buf
#define QStringLiteral(str)