From 63f06898f981b2e66da1bac7e8b6acff1c369301 Mon Sep 17 00:00:00 2001 From: Charles Giessen <46324611+charles-lunarg@users.noreply.github.com> Date: Sun, 18 Apr 2021 14:14:17 -0600 Subject: [PATCH] Revert "Revert "Assert for null sTypes."" This reverts commit 7126555c3bfd1df31db32f64c124990b23353e1d. --- src/VkBootstrap.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/VkBootstrap.h b/src/VkBootstrap.h index 2379f3c..3efc232 100644 --- a/src/VkBootstrap.h +++ b/src/VkBootstrap.h @@ -538,6 +538,8 @@ class PhysicalDeviceSelector { #if defined(VK_API_VERSION_1_1) template 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; }