Skip to content

Commit 2eba89b

Browse files
committed
Final utils for FFT
1 parent 8e25bb1 commit 2eba89b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

examples_tests

Submodule examples_tests updated 45 files

include/nbl/builtin/hlsl/workgroup/fft.hlsl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ struct exchangeValues
4040
else
4141
{
4242
hi.real(exchanged.x);
43-
lo.imag(exchanged.y);
43+
hi.imag(exchanged.y);
4444
}
4545
}
4646
};
@@ -125,7 +125,7 @@ template<typename Scalar>
125125
void unpack(NBL_REF_ARG(complex_t<Scalar>) lo, NBL_REF_ARG(complex_t<Scalar>) hi)
126126
{
127127
complex_t<Scalar> x = (lo + conj(hi)) * Scalar(0.5);
128-
hi = rotateRight<Scalar>(lo - conj(hi)) * 0.5;
128+
hi = rotateRight<Scalar>(lo - conj(hi)) * Scalar(0.5);
129129
lo = x;
130130
}
131131

0 commit comments

Comments
 (0)