From f460ecc1829c1b34f2198cc41528b1c6de99d976 Mon Sep 17 00:00:00 2001 From: riperiperi Date: Fri, 6 Oct 2023 23:55:07 +0100 Subject: GPU: Add HLE macros for popular NVN macros (#5761) * GPU: Add HLE macros for popular NVN macros * Remove non-vector equality check The case where it's not hardware accelerated will do the check integer-wise anyways. * Whitespace :pensive: * Address Feedback --- src/Ryujinx.Graphics.Gpu/Engine/Threed/ThreedClassState.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/Ryujinx.Graphics.Gpu/Engine/Threed/ThreedClassState.cs') diff --git a/src/Ryujinx.Graphics.Gpu/Engine/Threed/ThreedClassState.cs b/src/Ryujinx.Graphics.Gpu/Engine/Threed/ThreedClassState.cs index f2997678..45284525 100644 --- a/src/Ryujinx.Graphics.Gpu/Engine/Threed/ThreedClassState.cs +++ b/src/Ryujinx.Graphics.Gpu/Engine/Threed/ThreedClassState.cs @@ -590,9 +590,12 @@ namespace Ryujinx.Graphics.Gpu.Engine.Threed /// struct RtColorMask { -#pragma warning disable CS0649 // Field is never assigned to public uint Packed; -#pragma warning restore CS0649 + + public RtColorMask(uint packed) + { + Packed = packed; + } /// /// Unpacks red channel enable. -- cgit v1.2.3