Closed wenmana closed 2 years ago
Hi,
You are passing a raw surface pointer as second positional argument to get_physical_device_surface_formats_khr
, instead you need to wrap the surface as a SurfaceKHR
and pass that as a keyword argument surface = <surface>
. The method with a pointer as second positional argument interprets that second argument as function pointer for vkGetPhysicalDeviceSurfaceFormatsKHR
, which segfaults because it's not a function pointer. See the note in this section for more information about constructing the surface from the raw pointer.
Also you shouldn't call destroy_instance
and destroy_device
yourself manually, see the red note on that same section.
Hi, when I run the following code in windows:
It gives the follwoing output:
Error when running the same code in Linux:
Julia Version: 1.7 Device: Nvidia GTX 1050 TI