A cross-platform UI framework for .NET
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

35 lines
809 B

using System;
using Avalonia.Metadata;
using Avalonia.Platform;
using Avalonia.Platform.Surfaces;
namespace Avalonia.Metal;
[PrivateApi]
public interface IMetalDevice : IPlatformGraphicsContext
{
IntPtr Device { get; }
IntPtr CommandQueue { get; }
}
[PrivateApi]
public interface IMetalPlatformSurface : IPlatformRenderSurface
{
IMetalPlatformSurfaceRenderTarget CreateMetalRenderTarget(IMetalDevice device);
}
[PrivateApi]
public interface IMetalPlatformSurfaceRenderTarget : IDisposable, IPlatformRenderSurfaceRenderTarget
{
IMetalPlatformSurfaceRenderingSession BeginRendering();
}
[PrivateApi]
public interface IMetalPlatformSurfaceRenderingSession : IDisposable
{
IntPtr Texture { get; }
PixelSize Size { get; }
double Scaling { get; }
bool IsYFlipped { get; }
}