mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-04 17:10:47 +00:00
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:
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));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user