1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46
|
// ----------------------------------------------------------------------------
// - Open3D: www.open3d.org -
// ----------------------------------------------------------------------------
// Copyright (c) 2018-2024 www.open3d.org
// SPDX-License-Identifier: MIT
// ----------------------------------------------------------------------------
#include "open3d/core/Indexer.isph"
#include "open3d/core/ParallelFor.isph"
static inline void GetInputPointers(int64 idx,
uniform Indexer* uniform self,
uniform int64 input_idx,
void** uniform input_ptrs) {
input_ptrs[idx] = (void*)Indexer_GetInputPtr(self, input_idx, idx);
}
static inline void GetOutputPointers(int64 idx,
uniform Indexer* uniform self,
void** uniform output_ptrs) {
output_ptrs[idx] = (void*)Indexer_GetOutputPtr(self, idx);
}
static inline void GetOutputPointers(int64 idx,
uniform Indexer* uniform self,
uniform int64 output_idx,
void** uniform output_ptrs) {
output_ptrs[idx] = (void*)Indexer_GetOutputPtr(self, output_idx, idx);
}
OPEN3D_EXPORT_VECTORIZED(GetInputPointersKernel,
GetInputPointers,
uniform Indexer* uniform,
uniform int64,
void** uniform)
OPEN3D_EXPORT_VECTORIZED(GetOutputPointersKernel_Zero,
GetOutputPointers,
uniform Indexer* uniform,
void** uniform)
OPEN3D_EXPORT_VECTORIZED(GetOutputPointersKernel,
GetOutputPointers,
uniform Indexer* uniform,
uniform int64,
void** uniform)
|