Skip to content

Commit

Permalink
tests: Null VkLayerSettingsCreateInfoEXT
Browse files Browse the repository at this point in the history
  • Loading branch information
spencer-lunarg committed Sep 16, 2024
1 parent 6b6bc17 commit 215dcaf
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/unit/instance_positive.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -83,3 +83,12 @@ TEST_F(PositiveInstance, ValidEnumBeforeLogicalDevice) {
VkFormatFeatureFlags features = VK_FORMAT_FEATURE_TRANSFER_SRC_BIT | VK_FORMAT_FEATURE_TRANSFER_DST_BIT;
ImageFormatIsSupported(instance(), gpu(), ci, features);
}

TEST_F(PositiveInstance, EmptyVkLayerSettingEXT) {
TEST_DESCRIPTION("https://github.com/KhronosGroup/Vulkan-ValidationLayers/issues/8541");
auto ici = GetInstanceCreateInfo();
ici.pNext = nullptr;
VkInstance dummy_instance;
ASSERT_EQ(VK_SUCCESS, vk::CreateInstance(&ici, nullptr, &dummy_instance));
ASSERT_NO_FATAL_FAILURE(vk::DestroyInstance(dummy_instance, nullptr));
}

0 comments on commit 215dcaf

Please sign in to comment.