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/Types/Boolean32.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/Ryujinx.Graphics.Gpu/Engine/Types') diff --git a/src/Ryujinx.Graphics.Gpu/Engine/Types/Boolean32.cs b/src/Ryujinx.Graphics.Gpu/Engine/Types/Boolean32.cs index 911ad53b..7293fab9 100644 --- a/src/Ryujinx.Graphics.Gpu/Engine/Types/Boolean32.cs +++ b/src/Ryujinx.Graphics.Gpu/Engine/Types/Boolean32.cs @@ -5,9 +5,12 @@ /// readonly struct Boolean32 { -#pragma warning disable CS0649 // Field is never assigned to private readonly uint _value; -#pragma warning restore CS0649 + + public Boolean32(uint value) + { + _value = value; + } public static implicit operator bool(Boolean32 value) { -- cgit v1.2.3