Strip index decorations in vulkan postvs when patching to compute

This commit is contained in:
baldurk
2022-02-09 18:01:40 +00:00
parent 2c2e76fbeb
commit 544e6dbf18
+5
View File
@@ -188,6 +188,11 @@ static void ConvertToMeshOutputCompute(const ShaderReflection &refl,
{
editor.Remove(it);
}
// remove all index decorations
else if(decorate.decoration == rdcspv::Decoration::Index)
{
editor.Remove(it);
}
// same with flat/noperspective
else if(decorate.decoration == rdcspv::Decoration::Flat ||
decorate.decoration == rdcspv::Decoration::NoPerspective)