vulkan-go / vulkan

Vulkan API bindings for Go programming language
MIT License
742 stars 55 forks source link

EnumerateInstanceExtensionProperties seems to return extension properties without any name #49

Closed shravanshetty1 closed 3 years ago

shravanshetty1 commented 3 years ago

I am trying to learn vulkan through golang following - https://vulkan-tutorial.com/. While recreating - https://vulkan-tutorial.com/en/Drawing_a_triangle/Setup/Instance, i found my EnumerateInstanceExtensionProperties seems to return extensions without any name.

Code to reproduce issue can be found here - https://github.com/shravanshetty1/vulkan-tutorial-go/blob/master/2-instance/app/app.go#L86

shravanshetty1 commented 3 years ago

You will have to call Dref() on every struct, not sure why this cant be done automatically by the binding

xlab commented 3 years ago

@shravanshetty1 that causes a full copy from C mem and allocates Go struct and memory. That can have very high performance penalty.