feat: GSS2.Test - UI+DI, Vulkan render test

This commit is contained in:
2026-01-22 08:04:04 +03:00
parent 2ce8d3e966
commit 5af1c508f5
23 changed files with 1093 additions and 131 deletions
+15
View File
@@ -0,0 +1,15 @@
// Основан на примере GpuInterop Avalonia
// https://github.com/AvaloniaUI/Avalonia/blob/5f3dbae22244e830b464fc680c6c28ca124be41a/samples/GpuInterop/VulkanDemo/VulkanExtensions.cs
using Silk.NET.Vulkan;
namespace GSS2.Vulkan;
public static class VulkanExtensions
{
public static void ThrowOnError(this Result result)
{
if (result != Result.Success)
throw new Exception($"Unexpected API error \"{result}\"");
}
}