Skip to content

Commit

Permalink
MythShaderVulkan: Tweak SPIRV bytecode output
Browse files Browse the repository at this point in the history
- for a little less line count in the code
  • Loading branch information
mark-kendall committed Sep 11, 2020
1 parent 32086b4 commit d97f2e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mythtv/libs/libmythui/vulkan/mythshadervulkan.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ static auto GLSLangCompile(EShLanguage Stage, const QString &Code)
for (uint32_t opcode : OpCodes)
{
if (count++ == 0) string += "\n";
if (count > 3) count = 0;
if (count > 5) count = 0;
string += "0x" + QString("%1, ").arg(opcode, 8, 16, QLatin1Char('0')).toUpper();
}
return string;
Expand Down

0 comments on commit d97f2e0

Please sign in to comment.