MCPcopy Create free account
hub / github.com/dfranx/SHADERed / GetValueOffset

Method GetValueOffset

src/SHADERed/Objects/InputLayout.cpp:24–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22 return 0;
23 }
24 size_t InputLayoutItem::GetValueOffset(InputLayoutValue val)
25 {
26 switch (val) {
27 case InputLayoutValue::Position: return 0;
28 case InputLayoutValue::Normal: return 3;
29 case InputLayoutValue::Texcoord: return 6;
30 case InputLayoutValue::Tangent: return 8;
31 case InputLayoutValue::Binormal: return 11;
32 case InputLayoutValue::Color: return 14;
33 }
34 return 0;
35 }
36}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected