Expose the return value of DiscardFrameCapture.

This commit is contained in:
GreemDev 2025-12-29 01:07:01 -06:00
parent e28354cfa5
commit e419d2ebda

View file

@ -424,14 +424,15 @@ namespace Ryujinx.Graphics.RenderDocApi
/// </summary>
/// <param name="hDevice">a handle to the API device object that will be set active. May be <see cref="nint.Zero"/> to wildcard match.</param>
/// <param name="hWindow">a handle to the platform window handle that will be set active. May be <see cref="nint.Zero"/> to wildcard match.</param>
/// <returns>true if the capture was discarded; false if there was an error or no capture was in progress.</returns>
/// <remarks>Requires RenderDoc API version 1.4</remarks>
[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;
}