Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

forward.h 1.5 KB

You have to be logged in to leave a comment. Sign In
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
  1. /*
  2. * Copyright (C) 2023, Inria
  3. * GRAPHDECO research group, https://team.inria.fr/graphdeco
  4. * All rights reserved.
  5. *
  6. * This software is free for non-commercial, research and evaluation use
  7. * under the terms of the LICENSE.md file.
  8. *
  9. * For inquiries contact george.drettakis@inria.fr
  10. */
  11. #ifndef CUDA_RASTERIZER_FORWARD_H_INCLUDED
  12. #define CUDA_RASTERIZER_FORWARD_H_INCLUDED
  13. #include <cuda.h>
  14. #include "cuda_runtime.h"
  15. #include "device_launch_parameters.h"
  16. #define GLM_FORCE_CUDA
  17. #include <glm/glm.hpp>
  18. namespace FORWARD
  19. {
  20. // Perform initial steps for each Gaussian prior to rasterization.
  21. void preprocess(int P, int D, int M,
  22. const float* orig_points,
  23. const glm::vec3* scales,
  24. const float scale_modifier,
  25. const glm::vec4* rotations,
  26. const float* opacities,
  27. const float* shs,
  28. bool* clamped,
  29. const float* cov3D_precomp,
  30. const float* colors_precomp,
  31. const float* viewmatrix,
  32. const float* projmatrix,
  33. const glm::vec3* cam_pos,
  34. const int W, int H,
  35. const float focal_x, float focal_y,
  36. const float tan_fovx, float tan_fovy,
  37. int* radii,
  38. float2* points_xy_image,
  39. float* depths,
  40. float* cov3Ds,
  41. float* colors,
  42. float4* conic_opacity,
  43. const dim3 grid,
  44. uint32_t* tiles_touched,
  45. bool prefiltered);
  46. // Main rasterization method.
  47. void render(
  48. const dim3 grid, dim3 block,
  49. const uint2* ranges,
  50. const uint32_t* point_list,
  51. int W, int H,
  52. const float2* points_xy_image,
  53. const float* features,
  54. const float4* conic_opacity,
  55. float* final_T,
  56. uint32_t* n_contrib,
  57. const float* bg_color,
  58. float* out_color);
  59. }
  60. #endif
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...