From e419d2ebda5a84294b3f5cdc2d51d7667f23b5a3 Mon Sep 17 00:00:00 2001 From: GreemDev Date: Mon, 29 Dec 2025 01:07:01 -0600 Subject: [PATCH] Expose the return value of DiscardFrameCapture. --- src/Ryujinx.Graphics.RenderDocApi/RenderDoc.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/Ryujinx.Graphics.RenderDocApi/RenderDoc.cs b/src/Ryujinx.Graphics.RenderDocApi/RenderDoc.cs index 6115cada7..83a37e0a7 100644 --- a/src/Ryujinx.Graphics.RenderDocApi/RenderDoc.cs +++ b/src/Ryujinx.Graphics.RenderDocApi/RenderDoc.cs @@ -424,14 +424,15 @@ namespace Ryujinx.Graphics.RenderDocApi /// /// a handle to the API ‘device’ object that will be set active. May be to wildcard match. /// a handle to the platform window handle that will be set active. May be to wildcard match. + /// true if the capture was discarded; false if there was an error or no capture was in progress. /// Requires RenderDoc API version 1.4 [RenderDocApiVersion(1, 4)] - public static void DiscardFrameCapture(nint hDevice, nint hWindow) + public static bool DiscardFrameCapture(nint hDevice, nint hWindow) { - if (Api is null) return; + if (Api is null) return false; AssertAtLeast(1, 4); - Api->DiscardFrameCapture((void*)hDevice, (void*)hWindow); + return Api->DiscardFrameCapture((void*)hDevice, (void*)hWindow) != 0; }