Skip to content
Snippets Groups Projects

Resolve "Mesh Shader Implementation"

Merged Ghost User requested to merge 87-mesh-shader-implementation into develop
1 file
+ 2
2
Compare changes
  • Side-by-side
  • Inline
  • 67865802
    [#87] Replaced powf with pow, trying to fix non VS compile errors · 67865802
    Alexander Gauggel authored
@@ -45,14 +45,14 @@ namespace vkcv::meshlet
{
const float scaler = 1.0f / static_cast<float>(CACHE_FUNCTION_LENGTH - 3);
score = 1.0f - (i - 3) * scaler;
score = std::powf(score, CACHE_DECAY_POWER);
score = std::pow(score, CACHE_DECAY_POWER);
}
cachePositionScore[i] = score;
}
for(size_t i = 0; i < VALENCE_SCORE_TABLE_SIZE; i++)
{
const float valenceBoost = std::powf(i, -VALENCE_BOOST_POWER);
const float valenceBoost = std::pow(i, -VALENCE_BOOST_POWER);
const float score = VALENCE_BOOST_SCALE * valenceBoost;
valenceScore[i] = score;
Loading