mirror of
https://github.com/KhronosGroup/Vulkan-Utility-Libraries.git
synced 2025-05-15 09:18:49 +00:00
layer: Add 'on' and 'off' for bool layer settings for API dump comp
This commit is contained in:
parent
87801a6c47
commit
dca404674d
1 changed files with 2 additions and 0 deletions
|
@ -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());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue