Barycentric coordinates are used for the wireframe shader. It was already implemented, but was made broken or when we change the depth range or when we added support for fallback of shader viewport/layer rendering. The previous implementation didn't use the correct EmitVertex leading to incorrect depths. Also the shader layouts where not Vulkan compliant.  Pull Request: https://projects.blender.org/blender/blender/pulls/124048