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

Method Instantiate

vkconfig_core/setting_float.cpp:32–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30 : SettingMeta(layer, key, TYPE), default_value(0.0f), min_value(0.0f), max_value(0.0f), precision(0), width(0) {}
31
32SettingData* SettingMetaFloat::Instantiate() {
33 SettingData* setting_data = new SettingDataFloat(this);
34 setting_data->Reset();
35 this->instances.push_back(setting_data);
36 return setting_data;
37}
38
39bool SettingMetaFloat::Load(const QJsonObject& json_setting) {
40 this->default_value = ReadFloatValue(json_setting, "default");

Callers

nothing calls this directly

Calls 1

ResetMethod · 0.45

Tested by

no test coverage detected