Revert "Revert "Assert for null sTypes.""

This reverts commit 7126555c3b.
This commit is contained in:
Charles Giessen 2021-04-18 14:14:17 -06:00
parent 3c38977084
commit 63f06898f9

View File

@ -538,6 +538,8 @@ class PhysicalDeviceSelector {
#if defined(VK_API_VERSION_1_1)
template <typename T>
PhysicalDeviceSelector& add_required_extension_features(T const& features) {
assert(features.sType != 0 &&
"Features struct sType must be filled with the struct's corresponding VkStructureType enum");
criteria.extension_features.push_back(detail::ExtensionFeatures::make(features));
return *this;
}