aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Graphics.Gpu/Engine/DeviceStateWithShadow.cs
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.Gpu/Engine/DeviceStateWithShadow.cs
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.Gpu/Engine/DeviceStateWithShadow.cs')
-rw-r--r--Ryujinx.Graphics.Gpu/Engine/DeviceStateWithShadow.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/Ryujinx.Graphics.Gpu/Engine/DeviceStateWithShadow.cs b/Ryujinx.Graphics.Gpu/Engine/DeviceStateWithShadow.cs
index 3a06bc2a..74a9aa04 100644
--- a/Ryujinx.Graphics.Gpu/Engine/DeviceStateWithShadow.cs
+++ b/Ryujinx.Graphics.Gpu/Engine/DeviceStateWithShadow.cs
@@ -2,6 +2,7 @@ using Ryujinx.Graphics.Device;
using System;
using System.Collections.Generic;
using System.Diagnostics;
+using System.Diagnostics.CodeAnalysis;
using System.Runtime.CompilerServices;
namespace Ryujinx.Graphics.Gpu.Engine
@@ -21,7 +22,7 @@ namespace Ryujinx.Graphics.Gpu.Engine
/// Represents a device's state, with a additional shadow state.
/// </summary>
/// <typeparam name="TState">Type of the state</typeparam>
- class DeviceStateWithShadow<TState> : IDeviceState where TState : unmanaged, IShadowState
+ class DeviceStateWithShadow<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicFields)] TState> : IDeviceState where TState : unmanaged, IShadowState
{
private readonly DeviceState<TState> _state;
private readonly DeviceState<TState> _shadowState;