aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Graphics.Device
diff options
context:
space:
mode:
authorAndrey Sukharev <SukharevAndrey@users.noreply.github.com>2022-12-12 17:10:05 +0300
committerGitHub <noreply@github.com>2022-12-12 15:10:05 +0100
commitedf7e628cadd51e019f6d3723d120e727e50d32e (patch)
tree79335f6fdaeb15e3dd98ab3fa31e359843018cd6 /Ryujinx.Graphics.Device
parentba5c0cf5d8e4ea27fc62cd181ef65b8ff39f0fd5 (diff)
Use method overloads that support trimming. Mark some types to be trimming friendly (#4083)
* Use method overloads that support trimming. Mark some types to be trimming friendly * Use generic version of marshalling method
Diffstat (limited to 'Ryujinx.Graphics.Device')
-rw-r--r--Ryujinx.Graphics.Device/DeviceState.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/Ryujinx.Graphics.Device/DeviceState.cs b/Ryujinx.Graphics.Device/DeviceState.cs
index 18100571..a9b446e1 100644
--- a/Ryujinx.Graphics.Device/DeviceState.cs
+++ b/Ryujinx.Graphics.Device/DeviceState.cs
@@ -1,12 +1,13 @@
using System;
using System.Collections.Generic;
using System.Diagnostics;
+using System.Diagnostics.CodeAnalysis;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
namespace Ryujinx.Graphics.Device
{
- public class DeviceState<TState> : IDeviceState where TState : unmanaged
+ public class DeviceState<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicFields)] TState> : IDeviceState where TState : unmanaged
{
private const int RegisterSize = sizeof(int);