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
3.89k stars 378 forks source link

MAUI project on Android using OpenXR #2170

Closed MSU-PV closed 1 month ago

MSU-PV commented 1 month ago

Summary

Hi,

I am trying to solve unexpected problems when using OpenXR in the MAUI application with Silk.NET NuGet packages on Android.

I prepared a minimalist demo to check the possibility of using Silk.NET for our business, but I couldn't find a working constellation for it.

Steps to reproduce

  1. Create a default MAUI application in the Visual Studio 2022: 01 Create default MAUI 02 Create default MAUI 03 Create default MAUI 04 Create default MAUI

  2. To avoid the possibility that we are missing a NuGet package, we will install all of them from Silk.NET: 05 Install All NuGets from Silk NET

  3. Set the project to the Unsafe code: 06 Set Unsafe code

  4. Edit the code to get the OpenXR Extensions: 07 Edit code to get  OpenXR extensions

  5. Run the application: 08 Run the MAUI app on Windows

  6. Click on the button Click me: 09 Click on Click me button in the app This is the first one I would like to ask how to solve this?

  7. I found the solution in installing a NuGet package Evergine.OpenXR: 10 Try install NuGet Evergine OpenXr

  8. Run the app with Evergine.OpenXR: 11 Run with NuGet Evergine OpenXr It works. 12 Run with NuGet Evergine OpenXr

  9. Run another sample app with all known work-arounds: 13 Run with all known work-arounds It works without exception, but it doesn't load any OpenXR extensions.

Comments

Want some information?

As a solution, it would be enough for me if you create a minimalistic MAUI application in which OpenXR support would work.

Perksey commented 1 month ago

Sorry, we’re not going to write your app for you. We also don’t support MAUI at this time, only .NET 8 Android. Also we do not control the Evergine package. Finally, if you want something like this to be developed, please consider taking out a paid sponsorship.