So I am getting into vulkan using go and I am having some issues. When calling EnumerateInstanceLayerProperties it will return correctly, but the Go struct values are not correct. I can see internally that the internal values are correct however.
Here is my code:
layerNames := make([]string, 1)layerNames[0] = "VK_LAYER_KHRONOS_validation"layerCount := uint32(0)vulkan.EnumerateInstanceLayerProperties(&layerCount, nil)layers := make([]vulkan.LayerProperties, layerCount)vulkan.EnumerateInstanceLayerProperties(&layerCount, layers)`
You have to do layer.Deref() when you loop through the layers to make the go side get the updates from the C side, I believe. I had a similar issue at some point.
So I am getting into vulkan using go and I am having some issues. When calling EnumerateInstanceLayerProperties it will return correctly, but the Go struct values are not correct. I can see internally that the internal values are correct however.
Here is my code:
layerNames := make([]string, 1)
layerNames[0] = "VK_LAYER_KHRONOS_validation"
layerCount := uint32(0)
vulkan.EnumerateInstanceLayerProperties(&layerCount, nil)
layers := make([]vulkan.LayerProperties, layerCount)
vulkan.EnumerateInstanceLayerProperties(&layerCount,
layers)`Thanks!