-
Hi All, I'm having trouble getting Vortice.Vulkan(1.8.7) working on this project: It's an FSharp project running on .Net 8 on Visual Studio 2022. I have installed the Vulkan SDK and verified the setup with vkcube.exe. I have followed the initialization sequence in your sample projects by first loading from SDL:
(https://github.com/bryanedds/Nu/blob/caa34e4e8a1259c7e94a48a86b85cb42b1ec2a7d/Nu/Nu/Sdl/Sdl.fs#L119) which returns successfully. Then I run:
(https://github.com/bryanedds/Nu/blob/caa34e4e8a1259c7e94a48a86b85cb42b1ec2a7d/Nu/Nu/Render/RendererProcess.fs#L318, NativePtr is the required type in FSharp) vkInitialize also returns success, but when the application tries to run vkEnumerateInstanceExtensionProperties it throws System.AccessViolationException. Any help will be warmly appreciated! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Hi Dean, Cheers, |
Beta Was this translation helpful? Give feedback.
-
Hi Amer, Thanks again for your help! |
Beta Was this translation helpful? Give feedback.
Thanks heaps! I thought it would accept null for the count as well and that was a very bad assumption on my part.
However, the underlying issue is that when I tried passing a pointer to an actual count variable, I couldn't figure out how to convert it to the type that FSharp requires. Perhaps this is because the binding is more geared toward CSharp specifically rather than .Net generally?
So to answer the question fully for FSharp users, the required code is this: