Remove OpName for removed types in postvs SPIR-V patching

This commit is contained in:
baldurk
2020-03-31 18:45:37 +01:00
parent c1f91bcd51
commit 16c01a6db2
+4
View File
@@ -427,6 +427,10 @@ static void ConvertToMeshOutputCompute(const ShaderReflection &refl, const SPIRV
// remove any OpName for the old entry points
if(entries.find(name.target) != entries.end())
editor.Remove(it);
// remove any OpName for deleted types
if(typeReplacements.find(name.target) != typeReplacements.end())
editor.Remove(it);
}
}