This article presents uniform B-spline interpolation, completely contained on the graphics processing unit (GPU). This implies that the CPU does not need to compute any lookup tables or B-spline basis functions. The cubic interpolation can be decomposed into several linear interpolations [Sigg and Hadwiger 05], which are hard-wired on the GPU and therefore very fast. Here it is demonstrated that the cubic B-spline basis function can be evaluated in a short piece of GPU code without any conditional statements. Source code is available online.
Ruijters, D., Haar Romenij, ter, B. M., & Suetens, P. (2008). Efficient GPU-based texture interpolation using uniform B-splines. Journal of Graphics Tools, 13(4), 61-69. https://doi.org/10.1080/2151237X.2008.10129269