diff options
author | Laszlo Agocs <laszlo.agocs@qt.io> | 2019-09-16 17:44:16 +0200 |
---|---|---|
committer | Laszlo Agocs <laszlo.agocs@qt.io> | 2019-09-23 15:04:24 +0200 |
commit | 5c7e326802725a32a2426a4c1a07225c28da9af3 (patch) | |
tree | d42688a4289a7064d8fc19b1fb36a24e10bcf7b4 /src/particles | |
parent | 67ce1dd81014836aa8b900fd039adfc7c63414b5 (diff) |
Change const ref to ref in QSGMaterialRhiShader as per API review
Change-Id: I7783ed26a66f03ebe3b26bcba2f42f9fff45a417
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Reviewed-by: Christian Strømme <christian.stromme@qt.io>
Diffstat (limited to 'src/particles')
-rw-r--r-- | src/particles/qquickimageparticle.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
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<ImageMaterial *>(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<ImageMaterial *>(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<ImageMaterial *>(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<ImageMaterial *>(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<ImageMaterial *>(newMaterial)->state(); |