Skip to content

Commit

Permalink
[vulkan] Instruct users to install vulkan sdk if they want to use val…
Browse files Browse the repository at this point in the history
…idation layer
  • Loading branch information
Ailing Zhang committed Sep 19, 2022
1 parent 1d70030 commit 05d3b35
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion taichi/rhi/vulkan/vulkan_device_creator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,10 @@ void VulkanDeviceCreator::create_instance(bool manual_create) {

if (params_.enable_validation_layer) {
if (!check_validation_layer_support()) {
TI_WARN("validation layers requested but not available, turning off...");
TI_WARN(
"Validation layers requested but not available, turning off... "
"Please make sure Vulkan SDK from https://vulkan.lunarg.com/sdk/home "
"is installed.");
params_.enable_validation_layer = false;
}
}
Expand Down

0 comments on commit 05d3b35

Please sign in to comment.