MCPcopy Create free account
hub / github.com/LunarG/VulkanTools / IsValid

Method IsValid

vkconfig_core/setting_float.cpp:128–134  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

126}
127
128bool SettingDataFloat::IsValid() const {
129 if (meta->HasRange()) {
130 return this->value >= this->meta->min_value && this->value <= this->meta->max_value;
131 } else {
132 return true;
133 }
134}
135
136SettingInputError SettingDataFloat::ProcessInput(const std::string& input_value) {
137 if (input_value.empty()) return SETTING_INPUT_ERROR_EMPTY;

Callers 1

ExportMethod · 0.95

Calls 1

HasRangeMethod · 0.80

Tested by

no test coverage detected