mirror of
https://git.naxdy.org/Mirror/Ryujinx.git
synced 2026-01-12 02:00:25 +00:00
Expose the return value of DiscardFrameCapture.
This commit is contained in:
parent
e28354cfa5
commit
e419d2ebda
1 changed files with 4 additions and 3 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue