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

rasterizer.h 2.0 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
  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_H_INCLUDED
  12. #define CUDA_RASTERIZER_H_INCLUDED
  13. #include <vector>
  14. #include <functional>
  15. namespace CudaRasterizer
  16. {
  17. class Rasterizer
  18. {
  19. public:
  20. static void markVisible(
  21. int P,
  22. float* means3D,
  23. float* viewmatrix,
  24. float* projmatrix,
  25. bool* present);
  26. static int forward(
  27. std::function<char* (size_t)> geometryBuffer,
  28. std::function<char* (size_t)> binningBuffer,
  29. std::function<char* (size_t)> imageBuffer,
  30. const int P, int D, int M,
  31. const float* background,
  32. const int width, int height,
  33. const float* means3D,
  34. const float* shs,
  35. const float* colors_precomp,
  36. const float* opacities,
  37. const float* scales,
  38. const float scale_modifier,
  39. const float* rotations,
  40. const float* cov3D_precomp,
  41. const float* viewmatrix,
  42. const float* projmatrix,
  43. const float* cam_pos,
  44. const float tan_fovx, float tan_fovy,
  45. const bool prefiltered,
  46. float* out_color,
  47. int* radii = nullptr,
  48. bool debug = false);
  49. static void backward(
  50. const int P, int D, int M, int R,
  51. const float* background,
  52. const int width, int height,
  53. const float* means3D,
  54. const float* shs,
  55. const float* colors_precomp,
  56. const float* scales,
  57. const float scale_modifier,
  58. const float* rotations,
  59. const float* cov3D_precomp,
  60. const float* viewmatrix,
  61. const float* projmatrix,
  62. const float* campos,
  63. const float tan_fovx, float tan_fovy,
  64. const int* radii,
  65. char* geom_buffer,
  66. char* binning_buffer,
  67. char* image_buffer,
  68. const float* dL_dpix,
  69. float* dL_dmean2D,
  70. float* dL_dconic,
  71. float* dL_dopacity,
  72. float* dL_dcolor,
  73. float* dL_dmean3D,
  74. float* dL_dcov3D,
  75. float* dL_dsh,
  76. float* dL_dscale,
  77. float* dL_drot,
  78. bool debug);
  79. };
  80. };
  81. #endif
Tip!

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

Comments

Loading...