We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b3e889e commit cd06068Copy full SHA for cd06068
include/nbl/builtin/hlsl/workgroup/fft.hlsl
@@ -95,7 +95,7 @@ struct exchangeValues<SharedMemoryAdaptor, float64_t>
95
96
// Get the required size (in number of uint32_t elements) of the workgroup shared memory array needed for the FFT
97
template <typename scalar_t, uint32_t WorkgroupSize>
98
-NBL_CONSTEXPR uint32_t sharedMemSize = 2 * WorkgroupSize * (sizeof(scalar_t) / sizeof(uint32_t));
+NBL_CONSTEXPR uint32_t sharedMemSize = (sizeof(complex_t<scalar_t>) / sizeof(uint32_t)) * WorkgroupSize;
99
100
} //namespace fft
101
0 commit comments