Skip to content

Commit 350b0dc

Browse files
committed
Get rid of hardcoded variable
1 parent 3ed273c commit 350b0dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

28_FFTBloom/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -587,7 +587,7 @@ class FFTBloomApp final : public examples::SimpleWindowedApplication, public app
587587
uint32_t2 kernelDimensions = { kerDim.width, kerDim.height };
588588
// Y-axis goes first in the FFT
589589
hlsl::vector <uint16_t, 2> axisPassOrder = { 1, 0 };
590-
deviceLocalBufferParams.size = fft::getOutputBufferSizeConvolution<2>(3, imageDimensions, kernelDimensions, 0, axisPassOrder, true, m_useHalfFloats);
590+
deviceLocalBufferParams.size = fft::getOutputBufferSizeConvolution<2>(Channels, imageDimensions, kernelDimensions, 0, axisPassOrder, true, m_useHalfFloats);
591591
deviceLocalBufferParams.usage = asset::IBuffer::E_USAGE_FLAGS::EUF_STORAGE_BUFFER_BIT | asset::IBuffer::E_USAGE_FLAGS::EUF_SHADER_DEVICE_ADDRESS_BIT;
592592

593593
for (auto i = 0u; i < MaxFramesInFlight; i++)

0 commit comments

Comments
 (0)