-
I am switching from OpenGL to Vulkan and, while adding extensions, it suddenly never was able to create an instance. I eventually found that with VK_KHR_surface the result from CreateInstance was ErrorExtentionNotPresent. After a bit of research I thought this meant I need to update my drivers (and hardware from a GTX 980 GPU which is 10 years old). Though, I know that a game I play some, Valheim, works with the "Play with Vulkan" option, so I thought this was an error with my code. Code for instance creation
What should I do? PS: Sorry if my code is messy, I'm following a C++ tutorial for Vulkan and translating it to C#. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
fixed (string* firstExtPtr = &ext[0]) This is not correct, this is taking a pointer to managed object reference (your compiler should warn you about this) We have a convenience method |
Beta Was this translation helpful? Give feedback.
This is not correct, this is taking a pointer to managed object reference (your compiler should warn you about this)
We have a convenience method
SilkMarshal.StringArrayToPtr
you can use to get abyte**
from astring[]
.