1 // ----------------------------------------------------------------------------
2 // - CloudViewer: www.cloudViewer.org -
3 // ----------------------------------------------------------------------------
4 // Copyright (c) 2018-2024 www.cloudViewer.org
5 // SPDX-License-Identifier: MIT
6 // ----------------------------------------------------------------------------
10 namespace cloudViewer {
14 __global__ void three_nn_kernel(int b,
17 const float *__restrict__ unknown,
18 const float *__restrict__ known,
19 float *__restrict__ dist2,
20 int *__restrict__ idx);
22 __global__ void three_interpolate_kernel(int b,
26 const float *__restrict__ points,
27 const int *__restrict__ idx,
28 const float *__restrict__ weight,
29 float *__restrict__ out);
31 __global__ void three_interpolate_grad_kernel(
36 const float *__restrict__ grad_out,
37 const int *__restrict__ idx,
38 const float *__restrict__ weight,
39 float *__restrict__ grad_points);
41 } // namespace contrib
43 } // namespace cloudViewer