From 67865802a3236cef6376fae266f2da21b0aa1c1f Mon Sep 17 00:00:00 2001 From: Alexander Gauggel <agauggel@uni-koblenz.de> Date: Sat, 31 Jul 2021 10:55:34 +0200 Subject: [PATCH] [#87] Replaced powf with pow, trying to fix non VS compile errors --- modules/meshlet/src/vkcv/meshlet/Forsyth.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/meshlet/src/vkcv/meshlet/Forsyth.cpp b/modules/meshlet/src/vkcv/meshlet/Forsyth.cpp index 3ed77c6d..fd0f160d 100644 --- a/modules/meshlet/src/vkcv/meshlet/Forsyth.cpp +++ b/modules/meshlet/src/vkcv/meshlet/Forsyth.cpp @@ -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; -- GitLab