mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-11-14 01:41:10 +00:00
Automatically strip nops when destroying SPIRVEditor
This commit is contained in:
2 files changed
+1
-5
No files matched your search
@@ -359,7 +359,7 @@ class SPIRVEditor
|
||||
{
|
||||
public:
|
||||
SPIRVEditor(std::vector<uint32_t> &spirvWords);
|
||||
|
||||
~SPIRVEditor() { StripNops(); }
|
||||
void StripNops();
|
||||
|
||||
SPIRVId MakeId();
|
||||
|
||||
@@ -1117,8 +1117,6 @@ static void ConvertToMeshOutputCompute(const ShaderReflection &refl, const SPIRV
|
||||
|
||||
editor.AddFunction(ops.data(), ops.size());
|
||||
}
|
||||
|
||||
editor.StripNops();
|
||||
}
|
||||
|
||||
static void AddXFBAnnotations(const ShaderReflection &refl, const SPIRVPatchData &patchData,
|
||||
@@ -1267,8 +1265,6 @@ static void AddXFBAnnotations(const ShaderReflection &refl, const SPIRVPatchData
|
||||
vars.insert(outpatch[i].ID);
|
||||
}
|
||||
}
|
||||
|
||||
editor.StripNops();
|
||||
}
|
||||
|
||||
void VulkanReplay::ClearPostVSCache()
|
||||
|
||||
Reference in new issue
Block a user