Skip to content

Commit 456f382

Browse files
committed
Set VK_LAYER_KHRONOS_validation to optional in case layer not available for debug builds
1 parent 0fa6ee8 commit 456f382

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

framework/vulkan_sample.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1362,7 +1362,8 @@ template <vkb::BindingType bindingType>
13621362
inline void VulkanSample<bindingType>::request_layers(std::unordered_map<std::string, vkb::RequestMode> &requested_layers) const
13631363
{
13641364
#if defined(VKB_DEBUG) || defined(VKB_VALIDATION_LAYERS)
1365-
requested_layers["VK_LAYER_KHRONOS_validation"] = vkb::RequestMode::Required;
1365+
// VK_LAYER_KHRONOS_validation must be optional in case layer not available for debug builds (e.g. running on Windows with no SDK installed or on iOS Simulator)
1366+
requested_layers["VK_LAYER_KHRONOS_validation"] = vkb::RequestMode::Optional;
13661367
#endif
13671368
}
13681369

0 commit comments

Comments
 (0)