-
| Hello. I'm following a tutorial in Vulkan C++ (I'm new to Vulkan) and I managed to get a Vulkan context open. Which translate nicely to C# but then, they bind a callback (C++) debugCallback being declared as a simple C++ method. But in c#, the attribute is a PfnDebugUtilsMessengerCallbackEXT, and I can't figure out how I'm supposed to send a method through that.  There is a constructor that takes a " delegate * unmanaged[Cdecl]< TYPES... >ptr  " Anyone with some experience of this ? Thanks for your help ! Matt | 
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
| Try createInfo.PfnUserCallback = (DebugUtilsMessengerCallbackFunctionEXT) DebugCallback;
 | 
Beta Was this translation helpful? Give feedback.
Try
DebugUtilsMessengerCallbackFunctionEXTis a delegate which implicitly casts to the Pfn type.