Skip to content

Commit af0a32d

Browse files
committed
Remove centroid decorations when fetching postvs
1 parent 3a3e2c0 commit af0a32d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

renderdoc/driver/vulkan/vk_postvs.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,9 +168,10 @@ static void ConvertToMeshOutputCompute(const ShaderReflection &refl,
168168
{
169169
editor.Remove(it);
170170
}
171-
// same with flat/noperspective
171+
// same with flat/noperspective/centroid
172172
else if(decorate.decoration == rdcspv::Decoration::Flat ||
173-
decorate.decoration == rdcspv::Decoration::NoPerspective)
173+
decorate.decoration == rdcspv::Decoration::NoPerspective ||
174+
decorate.decoration == rdcspv::Decoration::Centroid)
174175
{
175176
editor.Remove(it);
176177
}

0 commit comments

Comments
 (0)