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

Function GetToken

vkconfig_core/setting.cpp:51–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49}
50
51const char* GetToken(SettingType type) {
52 assert(type >= SETTING_FIRST && type <= SETTING_LAST);
53
54 static const char* table[] = {
55 "STRING", // SETTING_STRING
56 "INT", // SETTING_INT
57 "FLOAT", // SETTING_FLOAT
58 "GROUP", // SETTING_GROUP
59 "SAVE_FILE", // SETTING_SAVE_FILE
60 "LOAD_FILE", // SETTING_LOAD_FILE
61 "SAVE_FOLDER", // SETTING_SAVE_FOLDER
62 "LOAD_FOLDER", // SETTING_LOAD_FOLDER
63 "BOOL", // SETTING_BOOL
64 "BOOL_NUMERIC", // SETTING_BOOL_NUMERIC_DEPRECATED
65 "ENUM", // SETTING_ENUM
66 "FLAGS", // SETTING_FLAGS
67 "FRAMES", // SETTING_FRAMES
68 "LIST" // SETTING_LIST
69 };
70 static_assert(std::size(table) == SETTING_COUNT, "The tranlation table size doesn't match the enum number of elements");
71
72 return table[type];
73}
74
75const char* GetLayerSettingTypeString(SettingType type) {
76 assert(type >= SETTING_FIRST && type <= SETTING_LAST);

Callers 2

GetSettingTypeFunction · 0.70
GetDependenceModeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected