-
Notifications
You must be signed in to change notification settings - Fork 546
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GPU surfaces on Windows 7? #213
Comments
yes, you can use GPU-backed SKSurface on Windows 7 I use libEGL from this ... SKIA sample (4,5) here |
@tdenniston This can be done in two ways.
However, OpenGL is working fine: |
@mattleibow When I try calling |
@tdenniston That might be because you don't have an OpenGL context set up? SkiaSharp does not create an OpenGL context, the "interface" here is basically a set of function pointers to the OpenGL functions (glDrawXXX). In my SkiaSharp.Views, I first set up a context to draw to the control/memory and then in the draw loop, I get the interface. For the Windows Desktop, I use OpenTK and GLControl (I will be switching eventually to DirectX): https://github.com/mono/SkiaSharp/blob/master/source/SkiaSharp.Views/SkiaSharp.Views.Desktop/SKGLControl.cs For UWP, I set up my ANGLE/DX context: |
Closing this as this is a combination of a duplicate issue and is also not really the right issue to solve:
To use OpenGL GPU on Windows 7, either use the OpenGL-based view, or you will have to set up your own context. For DirectX GPU, you will have to make use of the |
Is it possible to create a GPU-backed SKSurface on Windows 7? I'm currently getting a
DllNotFoundException
thrown when callingGRGlInterface.CreateDefaultInterface()
: "Unable to load libEGL.dll".I think libEGL.dll is a part of the Microsoft ANGLE package, which only seems to be available for Windows 10 and beyond?
The text was updated successfully, but these errors were encountered: