diff --git a/source/SkiaSharp.Views/SkiaSharp.Views/Platform/Apple/SKMetalView.cs b/source/SkiaSharp.Views/SkiaSharp.Views/Platform/Apple/SKMetalView.cs index fe0dabc5b9..f2100935bd 100644 --- a/source/SkiaSharp.Views/SkiaSharp.Views/Platform/Apple/SKMetalView.cs +++ b/source/SkiaSharp.Views/SkiaSharp.Views/Platform/Apple/SKMetalView.cs @@ -82,7 +82,16 @@ private void Initialize() ColorPixelFormat = MTLPixelFormat.BGRA8Unorm; DepthStencilPixelFormat = MTLPixelFormat.Depth32Float_Stencil8; - SampleCount = 1; + if (DeviceInfo.Current.DeviceType == DeviceType.Virtual) + { + DepthStencilStorageMode = MTLStorageMode.Private; + SampleCount = 4; + } + else + { + DepthStencilStorageMode = MTLStorageMode.Shared; + SampleCount = 2; + } FramebufferOnly = false; Device = device; backendContext = new GRMtlBackendContext