Fix logp z component

This commit is contained in:
Anthony Miles 2019-12-15 22:47:04 +13:00 committed by patrickvl
parent f9e5f51815
commit 9ee7bb451f
1 changed files with 1 additions and 1 deletions

View File

@ -162,7 +162,7 @@ float4 _logp(float input)
float4 dest;
dest.x = exponent;
dest.y = 1 / exp2(exponent); // mantissa
dest.z = exponent + log2(input); // logResult
dest.z = log2(input);
dest.w = 1;
return dest;