assert(gfx_queue_idx < demo->queue_count);
// Query fine-grained feature support for this device.
// If app has specific feature requirements it should check supported features based on this query
- VkPhysicalDeviceFeatures physDevFeatures = {};
+ VkPhysicalDeviceFeatures physDevFeatures;
err = vkGetPhysicalDeviceFeatures(demo->gpu, &physDevFeatures);
assert(!err);
skipCall |= log_msg(phy_dev_data->report_data, VK_DBG_REPORT_WARN_BIT, VK_OBJECT_TYPE_PHYSICAL_DEVICE, 0, 0, DEVLIMITS_INVALID_FEATURE_REQUESTED, "DL",
"You requested features that are unavailable on this device. You should first query feature availability by calling vkGetPhysicalDeviceFeatures().");
}
+ return skipCall;
}
VK_LAYER_EXPORT VkResult VKAPI vkCreateDevice(VkPhysicalDevice gpu, const VkDeviceCreateInfo* pCreateInfo, VkDevice* pDevice)