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

Function idToAttribType

3rdparty/bgfx/src/vertexlayout.cpp:232–243  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

230 static_assert(BX_COUNTOF(s_attribTypeToId) == AttribType::Count);
231
232 AttribType::Enum idToAttribType(uint16_t id)
233 {
234 for (uint32_t ii = 0; ii < BX_COUNTOF(s_attribTypeToId); ++ii)
235 {
236 if (s_attribTypeToId[ii].id == id)
237 {
238 return s_attribTypeToId[ii].type;
239 }
240 }
241
242 return AttribType::Count;
243 }
244
245 uint16_t attribTypeToId(AttribType::Enum _attr)
246 {

Callers 1

readFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected