Closed Noofbiz closed 5 years ago
Hi, I think you've updated your Go installation, because this error is detected by newer Go runtimes (1.8+ as far as I remember), also it worked that way for me:
https://github.com/vulkan-go/asche/blob/master/platform.go#L218-L229
In my examples I create a local variable and pass it around, only then set that to the struct. I had to do that, because of this error otherwise.
vk.CreateDevice(v.pd, &ci, nil, &v.d)
It complains about &v.d
my guess is.
Ah, I see. Thanks ^_^
As a note in case anyone else hits this issue and finds it, I ended up getting rid of v.pd as well, so the only things passed were local variables.
@Noofbiz I think v.pd
here is okay. Same as ret = vk.CreateDevice(p.gpu, ...
in my code
I'm trying to create a device via
which looks almost exactly what you have in asche. However, I am getting a runtime panic when I try it
This has worked for me before, but trying to run it today is causing this problem. I've tried printing all the things passed to make sure okay and it looks fine. Anyone have any tips or advice?
ETA: The second panic, index out of range, is in the cleanup step and there's no fences to cleanup since they're created after the device is created which is where the first panic happens.