Skip to content

Commit

Permalink
layer: Add 'on' and 'off' for bool layer settings for API dump comp
Browse files Browse the repository at this point in the history
  • Loading branch information
christophe-lunarg committed Sep 5, 2023
1 parent 87801a6 commit dca4046
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/layer/vk_layer_settings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,8 @@ VkResult vlGetLayerSettingValues(VlLayerSettingSet layerSettingSet, const char *
values[i] = (std::atoi(setting_value.c_str()) != 0) ? VK_TRUE : VK_FALSE;
} else if (setting_value == "true" || setting_value == "false") {
values[i] = (setting_value == "true") ? VK_TRUE : VK_FALSE;
} else if (setting_value == "on" || setting_value == "off") {
values[i] = (setting_value == "on") ? VK_TRUE : VK_FALSE;
} else {
const std::string &message =
vl::FormatString("The data provided (%s) is not a boolean value.", setting_value.c_str());
Expand Down

0 comments on commit dca4046

Please sign in to comment.