blob: b1326dbf29c7b651adab46b141be212e91e03300 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
using System;
using Silk.NET.Vulkan;
namespace Ryujinx.Ava.Ui.Vulkan
{
public static class ResultExtensions
{
public static void ThrowOnError(this Result result)
{
if (result != Result.Success)
{
throw new Exception($"Unexpected API error \"{result}\".");
}
}
}
}
|