Created
June 30, 2017 12:16
-
-
Save realvictorprm/0e677a692fe67651d4e8a05ea2bb7572 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Wrong function | |
[SuppressUnmanagedCodeSecurity] | |
[DllImport("glfw3", CallingConvention = CallingConvention.Cdecl, | |
EntryPoint = "glfwCreateWindowSurface")] | |
public static extern VkResult CreateWindowSurface(IntPtr instance, GLFWwindow window, IntPtr allocator, out long surface); | |
// Working function | |
[<SuppressUnmanagedCodeSecurity>] | |
[<DllImport("glfw3", CallingConvention = CallingConvention.Cdecl, EntryPoint = "glfwCreateWindowSurface")>] | |
extern VkResult CreateWindowSurface(uint64 instance, nativeint window, nativeint allocator, unativeint& surface); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment