mirror of
https://github.com/charles-lunarg/vk-bootstrap.git
synced 2024-11-22 07:24:34 +00:00
Assert for null sTypes.
This commit is contained in:
parent
3dc81e44df
commit
73e2b82dce
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user