spirv_reflect: Remove unnecessary spec sort

By construction the variables are pushed in order from smaller offset to
larger offsets. The sort only confuses the reader, so remove it.
This commit is contained in:
Tatsuyuki Ishi
2022-04-23 22:00:17 +09:00
committed by Baldur Karlsson
parent 3d4cd457bd
commit 2285bcc270
@@ -1178,12 +1178,6 @@ void Reflector::MakeReflection(const GraphicsAPI sourceAPI, const ShaderStage st
bindmap.arraySize = 1;
bindmap.used = true;
// sort by spec IDs
std::sort(specblock.variables.begin(), specblock.variables.end(),
[](const ShaderConstant &a, const ShaderConstant &b) {
return a.byteOffset < b.byteOffset;
});
cblocks.push_back(cblockpair(bindmap, specblock));
}