-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to obtain PhysicalDeviceIDProperties? #74
Comments
for type info use "go doc", see; https://pkg.go.dev/cmd/go#hdr-Show_documentation_for_package_or_symbol and for vilkan-go examples; https://github.com/vulkan-go/demos |
@splace could you point to exact function in "go doc", which provides PhysicalDeviceIDProperties? |
obviously vulkan has to be installed and this only works this simply when you're in its folder. much help can be obtained using go doc. |
also just look at the packages online doc, which was generated by go doc. https://pkg.go.dev/github.com/vulkan-go/vulkan#PhysicalDeviceIDProperties |
Ok. Let's return to my first message:
What your go doc say about |
OK, this package calls into vulkan, which is compiled c, the unsafe pointer is 'unsafe' due to this, the demos show you this working. you call funcs to get unsafe pointers, then call on these to get an unpopulated struct that you call another func to populate, you also get a cleanup func because go garbage collecter cant see the c, c doesn't have one anyway, but vulkan has its own way off cleaning up. i got this from looking at the demos. |
What name of the function I need to call to obtain |
Hello.
How can I get
PhysicalDeviceIDProperties
struct for my device? I've foundfunc NewPhysicalDeviceIDPropertiesRef(ref unsafe.Pointer)
function, but I have no idea where to find this pointer.Could someone provide example?
The text was updated successfully, but these errors were encountered: