Skip to content

Commit

Permalink
WebGPUWindow: Move to platform not supported exctepion
Browse files Browse the repository at this point in the history
  • Loading branch information
Beyley committed Nov 3, 2022
1 parent 8007315 commit 58a1b56
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
using Silk.NET.Windowing;

namespace Silk.NET.Windowing.Extensions.WebGPU;
/// <inheritdoc/>

public static class WebGPUWindow
{
Expand Down Expand Up @@ -39,7 +38,7 @@ public static class WebGPUWindow
}
else if (view.Native.Cocoa != null)
{
throw new NotSupportedException("WebGPU on MacOS is not supported at this time!)");
throw new PlatformNotSupportedException("WebGPU on MacOS is not supported at this time!");

var cocoa = view.Native.Cocoa.Value;

Expand Down Expand Up @@ -99,7 +98,7 @@ public static class WebGPUWindow
}
else
{
throw new NotSupportedException($"Your platform is not supported! {view.Native.Kind}");
throw new PlatformNotSupportedException($"Your platform is not supported! {view.Native.Kind}");
}

return wgpu.InstanceCreateSurface(instance, ref descriptor);
Expand Down

0 comments on commit 58a1b56

Please sign in to comment.