Skip to content
Snippets Groups Projects
Commit 67865802 authored by Alexander Gauggel's avatar Alexander Gauggel
Browse files

[#87] Replaced powf with pow, trying to fix non VS compile errors

parent f6a34061
No related branches found
No related tags found
1 merge request!74Resolve "Mesh Shader Implementation"
Pipeline #26584 failed
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment