MCPcopy Create free account
hub / github.com/crownengine/crown / texture_format_to_enum

Function texture_format_to_enum

src/resource/texture_resource.cpp:120–128  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

118 CE_STATIC_ASSERT(countof(s_texture_formats) == TextureFormat::COUNT);
119
120 static TextureFormat::Enum texture_format_to_enum(const char *format)
121 {
122 for (u32 i = 0; i < countof(s_texture_formats); ++i) {
123 if (strcmp(format, s_texture_formats[i].name) == 0)
124 return s_texture_formats[i].type;
125 }
126
127 return TextureFormat::COUNT;
128 }
129
130 struct OutputSettings
131 {

Callers 1

parse_outputFunction · 0.85

Calls 1

strcmpFunction · 0.85

Tested by

no test coverage detected