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

Method Reset

vkconfig_core/setting_float.cpp:89–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

87SettingDataFloat::SettingDataFloat(const SettingMetaFloat* meta) : SettingData(meta->key, meta->type), value(0.0f), meta(meta) {}
88
89void SettingDataFloat::Reset() {
90 assert(this->meta != nullptr);
91 this->value = this->meta->default_value;
92}
93
94void SettingDataFloat::Copy(const SettingData* data) {
95 if (data->type != this->type) return;

Callers 1

InstantiateMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected