aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Graphics.Gpu/Engine/Methods.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Ryujinx.Graphics.Gpu/Engine/Methods.cs')
-rw-r--r--Ryujinx.Graphics.Gpu/Engine/Methods.cs31
1 files changed, 8 insertions, 23 deletions
diff --git a/Ryujinx.Graphics.Gpu/Engine/Methods.cs b/Ryujinx.Graphics.Gpu/Engine/Methods.cs
index aaac9441..756d56d9 100644
--- a/Ryujinx.Graphics.Gpu/Engine/Methods.cs
+++ b/Ryujinx.Graphics.Gpu/Engine/Methods.cs
@@ -50,13 +50,8 @@ namespace Ryujinx.Graphics.Gpu.Engine
state.RegisterCallback(MethodOffset.LaunchDma, LaunchDma);
state.RegisterCallback(MethodOffset.LoadInlineData, LoadInlineData);
- state.RegisterCallback(MethodOffset.Dispatch, Dispatch);
-
state.RegisterCallback(MethodOffset.SyncpointAction, IncrementSyncpoint);
- state.RegisterCallback(MethodOffset.CopyBuffer, CopyBuffer);
- state.RegisterCallback(MethodOffset.CopyTexture, CopyTexture);
-
state.RegisterCallback(MethodOffset.TextureBarrier, TextureBarrier);
state.RegisterCallback(MethodOffset.TextureBarrierTiled, TextureBarrierTiled);
@@ -957,24 +952,6 @@ namespace Ryujinx.Graphics.Gpu.Engine
}
/// <summary>
- /// Storage buffer address and size information.
- /// </summary>
- private struct SbDescriptor
- {
-#pragma warning disable CS0649
- public uint AddressLow;
- public uint AddressHigh;
- public int Size;
- public int Padding;
-#pragma warning restore CS0649
-
- public ulong PackAddress()
- {
- return AddressLow | ((ulong)AddressHigh << 32);
- }
- }
-
- /// <summary>
/// Updates host shaders based on the guest GPU state.
/// </summary>
/// <param name="state">Current GPU state</param>
@@ -1089,6 +1066,14 @@ namespace Ryujinx.Graphics.Gpu.Engine
}
/// <summary>
+ /// Forces the shaders to be rebound on the next draw.
+ /// </summary>
+ public void ForceShaderUpdate()
+ {
+ _forceShaderUpdate = true;
+ }
+
+ /// <summary>
/// Updates transform feedback buffer state based on the guest GPU state.
/// </summary>
/// <param name="state">Current GPU state</param>