Our great sponsors
-
Avalonia
Develop Desktop, Embedded, Mobile and WebAssembly apps with C# and XAML. The most popular .NET Foundation community project.
-
Silk.NET
The high-speed OpenGL, OpenCL, OpenAL, OpenXR, GLFW, SDL, Vulkan, Assimp, WebGPU, and DirectX bindings library your mother warned you about.
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
I want to do some SkiaSharp rendering in an AvalonaiUI control. I found this StackOverflow answer that suggested using OpenGlControlBase, with an example, of how to do OpenGL rendering in a control. Then I found this StackOverflow answer, with an example, of how to do SkiaSharp rendering with an already existing OpenGL context, although comming from Silk.NET. I thought I'd just combine the two and be done with it, here's my attempt, but of course it wasn't that easy.
I want to do some SkiaSharp rendering in an AvalonaiUI control. I found this StackOverflow answer that suggested using OpenGlControlBase, with an example, of how to do OpenGL rendering in a control. Then I found this StackOverflow answer, with an example, of how to do SkiaSharp rendering with an already existing OpenGL context, although comming from Silk.NET. I thought I'd just combine the two and be done with it, here's my attempt, but of course it wasn't that easy.
I want to do some SkiaSharp rendering in an AvalonaiUI control. I found this StackOverflow answer that suggested using OpenGlControlBase, with an example, of how to do OpenGL rendering in a control. Then I found this StackOverflow answer, with an example, of how to do SkiaSharp rendering with an already existing OpenGL context, although comming from Silk.NET. I thought I'd just combine the two and be done with it, here's my attempt, but of course it wasn't that easy.
I don't see anything wrong with your code, altough I'm not familiar with Avalonia or Silk. I suggest you try to use apitrace for (a probably long and painful day) debugging it.