-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathext.cpp
33 lines (29 loc) · 1.23 KB
/
ext.cpp
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
/*
* Copyright (C) 2023, Inria
* GRAPHDECO research group, https://team.inria.fr/graphdeco
* All rights reserved.
*
* This software is free for non-commercial, research and evaluation use
* under the terms of the LICENSE.md file.
*
* For inquiries contact [email protected]
*/
#include <torch/extension.h>
#include "rasterize_points.h"
#include "cuda_rasterizer/config.h"
PYBIND11_MODULE(TORCH_EXTENSION_NAME, m) {
m.def("mark_visible", &markVisible);
m.def("preprocess_gaussians", &PreprocessGaussiansCUDA);
m.def("preprocess_gaussians_backward", &PreprocessGaussiansBackwardCUDA);
m.def("get_distribution_strategy", &GetDistributionStrategyCUDA);
m.def("render_gaussians", &RenderGaussiansCUDA);
m.def("render_gaussians_backward", &RenderGaussiansBackwardCUDA);
m.def("get_local2j_ids_bool", &GetLocal2jIdsBoolCUDA);
m.def("get_local2j_ids_bool_adjust_mode6", &GetLocal2jIdsBoolAdjustMode6CUDA);
// Image Distribution Utilities
m.def("get_touched_locally", &GetTouchedLocally);
m.def("load_image_tiles_by_pos", &LoadImageTilesByPos);
m.def("set_image_tiles_by_pos", &SetImageTilesByPos);
m.def("get_pixels_compute_locally_and_in_rect", &GetPixelsComputeLocallyAndInRect);
m.def("get_block_XY", &GetBlockXY);
}