Gets an index from an index buffer
| 111 | |
| 112 | // Gets an index from an index buffer |
| 113 | inline uint32 GetIndex(const void* indices, uint32 idx, uint32 indexSize) |
| 114 | { |
| 115 | if(indexSize == 2) |
| 116 | return reinterpret_cast<const uint16*>(indices)[idx]; |
| 117 | else |
| 118 | return reinterpret_cast<const uint32*>(indices)[idx]; |
| 119 | } |
| 120 | |
| 121 | |
| 122 | template<typename T, uint64 N> |
nothing calls this directly
no outgoing calls
no test coverage detected