MCPcopy Create free account
hub / github.com/TheRealMJP/SHforHLSL / vertexScore

Function vertexScore

SHTest/Externals/meshoptimizer/vcacheoptimizer.cpp:144–151  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

142}
143
144static float vertexScore(const VertexScoreTable* table, int cache_position, unsigned int live_triangles)
145{
146 assert(cache_position >= -1 && cache_position < int(kCacheSizeMax));
147
148 unsigned int live_triangles_clamped = live_triangles < kValenceMax ? live_triangles : kValenceMax;
149
150 return table->cache[1 + cache_position] + table->live[live_triangles_clamped];
151}
152
153static unsigned int getNextTriangleDeadEnd(unsigned int& input_cursor, const unsigned char* emitted_flags, size_t face_count)
154{

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected