From e741ba880e325c5fca9bdafd6290fff95ec61794 Mon Sep 17 00:00:00 2001 From: Michel Mastriani Date: Fri, 10 Apr 2020 15:46:51 +0000 Subject: [PATCH] Fixed cubic3D and cubicLattice_3D variations for AMD GPUs --- Source/Ember/Variations05.h | 34 ++++++++++++++++++---------------- 1 file changed, 18 insertions(+), 16 deletions(-) diff --git a/Source/Ember/Variations05.h b/Source/Ember/Variations05.h index 8a0e6c3..b059c1b 100644 --- a/Source/Ember/Variations05.h +++ b/Source/Ember/Variations05.h @@ -737,42 +737,43 @@ public: "\n" "\t\tswitch (useNode)\n" "\t\t{\n" - "\t\t case 0 :\n" + "\t\t case 0:\n" "\t\t vOut.x = val1 + " << halfweight << ";\n" "\t\t vOut.y = val2 + " << halfweight << ";\n" "\t\t vOut.z = val3 + " << halfweight << ";\n" "\t\t break;\n" - "\t\t case 1 :\n" + "\t\t case 1:\n" "\t\t vOut.x = val1 + " << halfweight << ";\n" "\t\t vOut.y = val2 - " << halfweight << ";\n" "\t\t vOut.z = val3 + " << halfweight << ";\n" "\t\t break;\n" - "\t\t case 2 :\n" + "\t\t case 2:\n" "\t\t vOut.x = val1 + " << halfweight << ";\n" "\t\t vOut.y = val2 + " << halfweight << ";\n" "\t\t vOut.z = val3 - " << halfweight << ";\n" "\t\t break;\n" - "\t\t case 3 :\n" + "\t\t case 3:\n" "\t\t vOut.x = val1 + " << halfweight << ";\n" "\t\t vOut.y = val2 - " << halfweight << ";\n" "\t\t vOut.z = val3 - " << halfweight << ";\n" "\t\t break;\n" - "\t\t case 4 :\n" + "\t\t case 4:\n" "\t\t vOut.x = val1 - " << halfweight << ";\n" "\t\t vOut.y = val2 + " << halfweight << ";\n" "\t\t vOut.z = val3 + " << halfweight << ";\n" "\t\t break;\n" - "\t\t case 5 :\n" + "\t\t case 5:\n" "\t\t vOut.x = val1 - " << halfweight << ";\n" "\t\t vOut.y = val2 - " << halfweight << ";\n" "\t\t vOut.z = val3 + " << halfweight << ";\n" "\t\t break;\n" - "\t\t case 6 :\n" + "\t\t case 6:\n" "\t\t vOut.x = val1 - " << halfweight << ";\n" "\t\t vOut.y = val2 + " << halfweight << ";\n" "\t\t vOut.z = val3 - " << halfweight << ";\n" "\t\t break;\n" - "\t\t case 7 :\n" + "\t\t case 7:\n" + "\t\t default:\n" "\t\t vOut.x = val1 - " << halfweight << ";\n" "\t\t vOut.y = val2 - " << halfweight << ";\n" "\t\t vOut.z = val3 - " << halfweight << ";\n" @@ -987,42 +988,43 @@ public: << "\n" << "\t\tswitch (useNode)\n" << "\t\t{\n" - << "\t\t case 0 :\n" + << "\t\t case 0:\n" << "\t\t vOut.x = pxtx + " << weight << ";\n" << "\t\t vOut.y = pyty + " << weight << ";\n" << "\t\t vOut.z = pztz + " << weight << ";\n" << "\t\t break;\n" - << "\t\t case 1 :\n" + << "\t\t case 1:\n" << "\t\t vOut.x = pxtx + " << weight << ";\n" << "\t\t vOut.y = pyty - " << weight << ";\n" << "\t\t vOut.z = pztz + " << weight << ";\n" << "\t\t break;\n" - << "\t\t case 2 :\n" + << "\t\t case 2:\n" << "\t\t vOut.x = pxtx + " << weight << ";\n" << "\t\t vOut.y = pyty + " << weight << ";\n" << "\t\t vOut.z = pztz - " << weight << ";\n" << "\t\t break;\n" - << "\t\t case 3 :\n" + << "\t\t case 3:\n" << "\t\t vOut.x = pxtx + " << weight << ";\n" << "\t\t vOut.y = pyty - " << weight << ";\n" << "\t\t vOut.z = pztz - " << weight << ";\n" << "\t\t break;\n" - << "\t\t case 4 :\n" + << "\t\t case 4:\n" << "\t\t vOut.x = pxtx - " << weight << ";\n" << "\t\t vOut.y = pyty + " << weight << ";\n" << "\t\t vOut.z = pztz + " << weight << ";\n" << "\t\t break;\n" - << "\t\t case 5 :\n" + << "\t\t case 5:\n" << "\t\t vOut.x = pxtx - " << weight << ";\n" << "\t\t vOut.y = pyty - " << weight << ";\n" << "\t\t vOut.z = pztz + " << weight << ";\n" << "\t\t break;\n" - << "\t\t case 6 :\n" + << "\t\t case 6:\n" << "\t\t vOut.x = pxtx - " << weight << ";\n" << "\t\t vOut.y = pyty + " << weight << ";\n" << "\t\t vOut.z = pztz - " << weight << ";\n" << "\t\t break;\n" - << "\t\t case 7 :\n" + << "\t\t case 7:\n" + << "\t\t default:\n" << "\t\t vOut.x = pxtx - " << weight << ";\n" << "\t\t vOut.y = pyty - " << weight << ";\n" << "\t\t vOut.z = pztz - " << weight << ";\n"