Go to the documentation of this file. 49 #define DISPATCH_DTYPE_TO_TEMPLATE(DTYPE, ...) \ 52 case open3d::Dtype::Float32: { \ 53 using scalar_t = float; \ 54 return __VA_ARGS__(); \ 56 case open3d::Dtype::Float64: { \ 57 using scalar_t = double; \ 58 return __VA_ARGS__(); \ 60 case open3d::Dtype::Int32: { \ 61 using scalar_t = int32_t; \ 62 return __VA_ARGS__(); \ 64 case open3d::Dtype::Int64: { \ 65 using scalar_t = int64_t; \ 66 return __VA_ARGS__(); \ 68 case open3d::Dtype::UInt8: { \ 69 using scalar_t = uint8_t; \ 70 return __VA_ARGS__(); \ 73 utility::LogError("Unsupported data type."); \ 77 #define DISPATCH_DTYPE_TO_TEMPLATE_WITH_BOOL(DTYPE, ...) \ 79 if (DTYPE == open3d::Dtype::Bool) { \ 80 using scalar_t = bool; \ 81 return __VA_ARGS__(); \ 83 DISPATCH_DTYPE_TO_TEMPLATE(DTYPE, __VA_ARGS__); \