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
VkDeviceGroupDeviceCreateInfo device_group_create_info;
VkPhysicalDeviceGroupProperties device_group_info; // <------- Struct is not zeroed.if(num_device_groups > 0) {
// we always use the first group
num_device_groups = 1;
_VK(vkEnumeratePhysicalDeviceGroups(qvk.instance, &num_device_groups, &device_group_info)); // <---- Whether pNext is zero is undefined. It might often accidentally be so.
src/refresh/vkpt/main.c
In the example above, VkPhysicalDeviceGroupProperties device_group_info {}; would zero out the pNext pointer.
The sType is also not set in this example.
Might be worth doing a sweep of the code for similar cases.
src/refresh/vkpt/main.c
In the example above,
VkPhysicalDeviceGroupProperties device_group_info {};
would zero out thepNext
pointer.The
sType
is also not set in this example.Might be worth doing a sweep of the code for similar cases.
Here is a Godbolt snippet showing struct members not being zeroed by default: https://godbolt.org/z/K8n7Wsj4h
The text was updated successfully, but these errors were encountered: