Skip to content

Commit

Permalink
Make SPIR-V compute shader image types work better
Browse files Browse the repository at this point in the history
  • Loading branch information
RobDangerous committed Jan 24, 2024
1 parent 8db42c5 commit cf98a5c
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions Sources/SpirVTranslator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -860,12 +860,7 @@ void SpirVTranslator::outputCode(const Target& target, const char* sourcefilenam
}
else if (inst.opcode == OpTypeImage) {
Instruction copy = inst;
if (stage == StageCompute) {
copy.length -= 1;
}
else {
copy.length -= 2;
}
copy.length -= 2; // cut the video flag and the access flag
newinstructions.push_back(copy);
}
else if (inst.opcode == OpVariable) {
Expand Down

0 comments on commit cf98a5c

Please sign in to comment.