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

backward.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
  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_BACKWARD_H_INCLUDED
  12. #define CUDA_RASTERIZER_BACKWARD_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 BACKWARD
  19. {
  20. void render(
  21. const dim3 grid, dim3 block,
  22. const uint2* ranges,
  23. const uint32_t* point_list,
  24. int W, int H,
  25. const float* bg_color,
  26. const float2* means2D,
  27. const float4* conic_opacity,
  28. const float* colors,
  29. const float* final_Ts,
  30. const uint32_t* n_contrib,
  31. const float* dL_dpixels,
  32. float3* dL_dmean2D,
  33. float4* dL_dconic2D,
  34. float* dL_dopacity,
  35. float* dL_dcolors);
  36. void preprocess(
  37. int P, int D, int M,
  38. const float3* means,
  39. const int* radii,
  40. const float* shs,
  41. const bool* clamped,
  42. const glm::vec3* scales,
  43. const glm::vec4* rotations,
  44. const float scale_modifier,
  45. const float* cov3Ds,
  46. const float* view,
  47. const float* proj,
  48. const float focal_x, float focal_y,
  49. const float tan_fovx, float tan_fovy,
  50. const glm::vec3* campos,
  51. const float3* dL_dmean2D,
  52. const float* dL_dconics,
  53. glm::vec3* dL_dmeans,
  54. float* dL_dcolor,
  55. float* dL_dcov3D,
  56. float* dL_dsh,
  57. glm::vec3* dL_dscale,
  58. glm::vec4* dL_drot);
  59. }
  60. #endif
Tip!

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

Comments

Loading...