DTolm / VkFFT

Vulkan/CUDA/HIP/OpenCL/Level Zero/Metal Fast Fourier Transform library
MIT License
1.55k stars 94 forks source link

Move common code according to case distinctions #8

Open elfring opened 4 years ago

elfring commented 4 years ago

Some function calls are repeated according to case distinctions. :thinking: Thus I imagine that a bit of common source code can be moved.

DTolm commented 4 years ago

The tree structure that is implemented right now makes it easier to understand which shader is launched for a specific configuration (at least for me). The whole FFT Plan configurator can be changed at the later stage of development so refactoring if statements right now won't make huge improvements for the code.

elfring commented 4 years ago

:bulb: I would generally prefer to reduce code duplication.