From ef14a22c2337c13859c87a37bf7468528d723cea Mon Sep 17 00:00:00 2001 From: IndecisiveTurtle <47210458+raphaelthegreat@users.noreply.github.com> Date: Tue, 15 Jul 2025 22:39:14 +0300 Subject: [PATCH] attribute: Correct bary coord function --- src/shader_recompiler/ir/attribute.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/shader_recompiler/ir/attribute.h b/src/shader_recompiler/ir/attribute.h index 00ec6c4b3..58f28fb81 100644 --- a/src/shader_recompiler/ir/attribute.h +++ b/src/shader_recompiler/ir/attribute.h @@ -110,7 +110,8 @@ constexpr bool IsMrt(Attribute attribute) noexcept { } constexpr bool IsBarycentricCoord(Attribute attribute) noexcept { - return attribute >= Attribute::BaryCoordSmooth && attribute <= Attribute::BaryCoordSmoothSample; + return attribute >= Attribute::BaryCoordNoPersp && + attribute <= Attribute::BaryCoordSmoothSample; } [[nodiscard]] std::string NameOf(Attribute attribute);