From 5c7e326802725a32a2426a4c1a07225c28da9af3 Mon Sep 17 00:00:00 2001 From: Laszlo Agocs Date: Mon, 16 Sep 2019 17:44:16 +0200 Subject: Change const ref to ref in QSGMaterialRhiShader as per API review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I7783ed26a66f03ebe3b26bcba2f42f9fff45a417 Reviewed-by: Lars Knoll Reviewed-by: Christian Strømme --- src/particles/qquickimageparticle.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'src/particles') diff --git a/src/particles/qquickimageparticle.cpp b/src/particles/qquickimageparticle.cpp index 649fbb30c2..bd3865f42f 100644 --- a/src/particles/qquickimageparticle.cpp +++ b/src/particles/qquickimageparticle.cpp @@ -179,7 +179,7 @@ public: setShaderFileName(FragmentStage, QStringLiteral(":/particles/shaders_ng/imageparticle_tabled.frag.qsb")); } - bool updateUniformData(const RenderState &renderState, QSGMaterial *newMaterial, QSGMaterial *) override + bool updateUniformData(RenderState &renderState, QSGMaterial *newMaterial, QSGMaterial *) override { QByteArray *buf = renderState.uniformData(); Q_ASSERT(buf->size() >= 80 + 2 * (UNIFORM_ARRAY_SIZE * 4 * 4)); @@ -216,7 +216,7 @@ public: return true; } - void updateSampledImage(const RenderState &renderState, int binding, QSGTexture **texture, + void updateSampledImage(RenderState &renderState, int binding, QSGTexture **texture, QSGMaterial *newMaterial, QSGMaterial *) override { ImageMaterialData *state = static_cast(newMaterial)->state(); @@ -331,7 +331,7 @@ public: setShaderFileName(FragmentStage, QStringLiteral(":/particles/shaders_ng/imageparticle_deformed.frag.qsb")); } - bool updateUniformData(const RenderState &renderState, QSGMaterial *newMaterial, QSGMaterial *) override + bool updateUniformData(RenderState &renderState, QSGMaterial *newMaterial, QSGMaterial *) override { QByteArray *buf = renderState.uniformData(); Q_ASSERT(buf->size() >= 80 + 2 * (UNIFORM_ARRAY_SIZE * 4 * 4)); @@ -357,7 +357,7 @@ public: return true; } - void updateSampledImage(const RenderState &renderState, int binding, QSGTexture **texture, + void updateSampledImage(RenderState &renderState, int binding, QSGTexture **texture, QSGMaterial *newMaterial, QSGMaterial *) override { ImageMaterialData *state = static_cast(newMaterial)->state(); @@ -487,7 +487,7 @@ public: setShaderFileName(FragmentStage, QStringLiteral(":/particles/shaders_ng/imageparticle_sprite.frag.qsb")); } - bool updateUniformData(const RenderState &renderState, QSGMaterial *newMaterial, QSGMaterial *) override + bool updateUniformData(RenderState &renderState, QSGMaterial *newMaterial, QSGMaterial *) override { QByteArray *buf = renderState.uniformData(); Q_ASSERT(buf->size() >= 80 + 2 * (UNIFORM_ARRAY_SIZE * 4 * 4)); @@ -524,7 +524,7 @@ public: return true; } - void updateSampledImage(const RenderState &renderState, int binding, QSGTexture **texture, + void updateSampledImage(RenderState &renderState, int binding, QSGTexture **texture, QSGMaterial *newMaterial, QSGMaterial *) override { ImageMaterialData *state = static_cast(newMaterial)->state(); @@ -651,7 +651,7 @@ public: setShaderFileName(FragmentStage, QStringLiteral(":/particles/shaders_ng/imageparticle_colored.frag.qsb")); } - bool updateUniformData(const RenderState &renderState, QSGMaterial *newMaterial, QSGMaterial *) override + bool updateUniformData(RenderState &renderState, QSGMaterial *newMaterial, QSGMaterial *) override { QByteArray *buf = renderState.uniformData(); Q_ASSERT(buf->size() >= 80 + 2 * (UNIFORM_ARRAY_SIZE * 4 * 4)); @@ -677,7 +677,7 @@ public: return true; } - void updateSampledImage(const RenderState &renderState, int binding, QSGTexture **texture, + void updateSampledImage(RenderState &renderState, int binding, QSGTexture **texture, QSGMaterial *newMaterial, QSGMaterial *) override { ImageMaterialData *state = static_cast(newMaterial)->state(); @@ -799,7 +799,7 @@ public: setShaderFileName(FragmentStage, QStringLiteral(":/particles/shaders_ng/imageparticle_simple.frag.qsb")); } - bool updateUniformData(const RenderState &renderState, QSGMaterial *newMaterial, QSGMaterial *) override + bool updateUniformData(RenderState &renderState, QSGMaterial *newMaterial, QSGMaterial *) override { QByteArray *buf = renderState.uniformData(); Q_ASSERT(buf->size() >= 80 + 2 * (UNIFORM_ARRAY_SIZE * 4 * 4)); @@ -825,7 +825,7 @@ public: return true; } - void updateSampledImage(const RenderState &renderState, int binding, QSGTexture **texture, + void updateSampledImage(RenderState &renderState, int binding, QSGTexture **texture, QSGMaterial *newMaterial, QSGMaterial *) override { ImageMaterialData *state = static_cast(newMaterial)->state(); -- cgit v1.2.3