Skip to content

Commit

Permalink
Merge pull request #73 from luboslenco/master
Browse files Browse the repository at this point in the history
Fix ArrayStride decoration for SPIRV
  • Loading branch information
RobDangerous authored Aug 20, 2020
2 parents d5a3289 + e41d847 commit 68149aa
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Sources/SpirVTranslator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -217,9 +217,8 @@ namespace {
newinstructions.push_back(dec3);
}
else if (utype == floatarraytype || utype == vec2arraytype || utype == vec3arraytype || utype == vec4arraytype) {
Instruction dec3(OpDecorate, &instructionsData[instructionsDataIndex], 4);
Instruction dec3(OpDecorate, &instructionsData[instructionsDataIndex], 3);
structtypeindices.push_back(instructionsDataIndex);
instructionsData[instructionsDataIndex++] = 0;
instructionsData[instructionsDataIndex++] = utype;
instructionsData[instructionsDataIndex++] = DecorationArrayStride;
instructionsData[instructionsDataIndex++] = 16;
Expand Down

0 comments on commit 68149aa

Please sign in to comment.