You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Error found with GetPhysicalDeviceFeatures2, bug presumably affects any command that requires a structure to be populated by Vulkan.
Current code:
var pFeatures _vkPhysicalDeviceFeatures2
ptr_pFeatures := &pFeatures
execTrampoline(keyvkGetPhysicalDeviceFeatures2, uintptr(physicalDevice), uintptr(unsafe.Pointer(ptr_pFeatures)))
features = *(pFeatures.Goify())
In the example above, Vulkan will silently fail and not modify the struct because pFeatures does not have sType set. (Not sure why it isn't caught by validation layers, but that isn't the issue here.)
Need to modify vk-gen output to allocate that struct and call Vulkanize() before the trampoline call, something like:
pFeatures := (&PhysicalDeviceFeatures2{}).Vulkanize()
execTrampoline(keyvkGetPhysicalDeviceFeatures2, uintptr(physicalDevice), uintptr(unsafe.Pointer(pFeatures)))
features = *(pFeatures.Goify())
return
The text was updated successfully, but these errors were encountered:
Error found with GetPhysicalDeviceFeatures2, bug presumably affects any command that requires a structure to be populated by Vulkan.
Current code:
In the example above, Vulkan will silently fail and not modify the struct because pFeatures does not have sType set. (Not sure why it isn't caught by validation layers, but that isn't the issue here.)
Need to modify vk-gen output to allocate that struct and call Vulkanize() before the trampoline call, something like:
The text was updated successfully, but these errors were encountered: