dotnet / Silk.NET

The high-speed OpenGL, OpenCL, OpenAL, OpenXR, GLFW, SDL, Vulkan, Assimp, WebGPU, and DirectX bindings library your mother warned you about.
https://dotnet.github.io/Silk.NET
MIT License
4.19k stars 403 forks source link

Is iOS still at the experimental stage? #1822

Open cxzhe opened 11 months ago

cxzhe commented 11 months ago

I want to use it on Net.iOS. Where can I get a demo? I only see the Android demo. I'm running the official demo on the MacOS it works fine but I can't find any documents on iOS. how should I begin? I don't know how to get get GL instance on iOS. Create IWindow or IView will crash.

var options = ViewOptions.Default;
options.API = new GraphicsAPI(ContextAPI.OpenGLES, ContextProfile.Compatability, ContextFlags.Default, new APIVersion(1, 0));
var view = Silk.NET.Windowing.Window.GetView(options);
var window = Silk.NET.Windowing.Window.Create(new WindowOptions(options));
var gl = GL.GetApi(view);

Package List

Silk.NET.Windowing
Silk.NET.OpenGLES
Silk.NET.Input
Perksey commented 11 months ago

Yes iOS is still experimental at this time, this is noted in the 2.0 release blog and there has been no further publications to the contrary: https://dotnet.github.io/Silk.NET/blog/jan-2021/silk20.html

If I remember correctly, my experience was similar. Got it working on the simulator fine, but crashed on a real device. I don't have the crash to hand, can you attach more details please for when we eventually decide to investigate this?