| 12345678910111213141516171819202122 |
- using SharpMetal.QuartzCore;
- using System;
- using System.Runtime.Versioning;
- namespace Ryujinx.Ava.UI.Renderer
- {
- [SupportedOSPlatform("macos")]
- public class EmbeddedWindowMetal : EmbeddedWindow
- {
- public CAMetalLayer CreateSurface()
- {
- if (OperatingSystem.IsMacOS())
- {
- return new CAMetalLayer(MetalLayer);
- }
- else
- {
- throw new NotSupportedException();
- }
- }
- }
- }
|