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.
 
 
 

19 lines
665 B

using System.Collections.Generic;
using Avalonia.Rendering.Composition;
namespace Avalonia.OpenGL
{
public interface IOpenGlTextureSharingRenderInterfaceContextFeature
{
bool CanCreateSharedContext { get; }
IGlContext? CreateSharedContext(IEnumerable<GlVersion>? preferredVersions = null);
ICompositionImportableOpenGlSharedTexture CreateSharedTextureForComposition(IGlContext context, PixelSize size);
}
public interface ICompositionImportableOpenGlSharedTexture : ICompositionImportableSharedGpuContextImage
{
int TextureId { get; }
int InternalFormat { get; }
PixelSize Size { get; }
}
}