Open3D (C++ API)  0.19.0
Loading...
Searching...
No Matches
FilamentScene.h
Go to the documentation of this file.
1// ----------------------------------------------------------------------------
2// - Open3D: www.open3d.org -
3// ----------------------------------------------------------------------------
4// Copyright (c) 2018-2024 www.open3d.org
5// SPDX-License-Identifier: MIT
6// ----------------------------------------------------------------------------
7
8#pragma once
9
10// 4068: Filament has some clang-specific vectorizing pragma's that MSVC flags
11// 4146: Filament's utils/algorithm.h utils::details::ctz() tries to negate
12// an unsigned int.
13// 4293: Filament's utils/algorithm.h utils::details::clz() does strange
14// things with MSVC. Somehow sizeof(unsigned int) > 4, but its size is
15// 32 so that x >> 32 gives a warning. (Or maybe the compiler can't
16// determine the if statement does not run.)
17// 4305: LightManager.h needs to specify some constants as floats
18#ifdef _MSC_VER
19#pragma warning(push)
20#pragma warning(disable : 4068 4146 4293 4305)
21#endif // _MSC_VER
22
23#include <filament/LightManager.h>
24#include <filament/RenderableManager.h>
25#include <utils/Entity.h>
26
27#ifdef _MSC_VER
28#pragma warning(pop)
29#endif // _MSC_VER
30
31#include <Eigen/Geometry>
32#include <cstdint>
33#include <functional>
34#include <memory>
35#include <unordered_map>
36#include <vector>
37
45
47namespace filament {
48class Box;
49class Engine;
50class IndirectLight;
51class Renderer;
52class Scene;
53class Skybox;
54class TransformManager;
55class VertexBuffer;
56} // namespace filament
58
59namespace open3d {
60namespace visualization {
61namespace rendering {
62
63class FilamentView;
64class GeometryBuffersBuilder;
65class Renderer;
66class View;
67
68// Contains renderable objects like geometry and lights
69// Can have multiple views
70class FilamentScene : public Scene {
71public:
72 using Transform = Eigen::Transform<float, 3, Eigen::Affine>;
73
74 FilamentScene(filament::Engine& engine,
75 FilamentResourceManager& resource_mgr,
76 Renderer& renderer);
78
79 Scene* Copy() override;
80
81 // NOTE: Temporarily needed to support old View interface for ImGUI
82 ViewHandle AddView(std::int32_t x,
83 std::int32_t y,
84 std::uint32_t w,
85 std::uint32_t h) override;
86
87 View* GetView(const ViewHandle& view_id) const override;
88 void SetViewActive(const ViewHandle& view_id, bool is_active) override;
89 void SetRenderOnce(const ViewHandle& view_id) override;
90 void RemoveView(const ViewHandle& view_id) override;
91
92 // Camera
93 void AddCamera(const std::string& camera_name,
94 std::shared_ptr<Camera> cam) override;
95 void RemoveCamera(const std::string& camera_name) override;
96 void SetActiveCamera(const std::string& camera_name) override;
97
98 // Scene geometry
99 bool AddGeometry(const std::string& object_name,
100 const geometry::Geometry3D& geometry,
101 const MaterialRecord& material,
102 const std::string& downsampled_name = "",
103 size_t downsample_threshold = SIZE_MAX) override;
104 bool AddGeometry(const std::string& object_name,
105 const t::geometry::Geometry& geometry,
106 const MaterialRecord& material,
107 const std::string& downsampled_name = "",
108 size_t downsample_threshold = SIZE_MAX) override;
109 bool AddGeometry(const std::string& object_name,
110 const TriangleMeshModel& model) override;
111 bool HasGeometry(const std::string& object_name) const override;
112 void UpdateGeometry(const std::string& object_name,
113 const t::geometry::PointCloud& point_cloud,
114 uint32_t update_flags) override;
115 void RemoveGeometry(const std::string& object_name) override;
116 void ShowGeometry(const std::string& object_name, bool show) override;
117 bool GeometryIsVisible(const std::string& object_name) override;
118 void SetGeometryTransform(const std::string& object_name,
119 const Transform& transform) override;
120 Transform GetGeometryTransform(const std::string& object_name) override;
122 const std::string& object_name) override;
123 void GeometryShadows(const std::string& object_name,
124 bool cast_shadows,
125 bool receive_shadows) override;
126 void SetGeometryCulling(const std::string& object_name,
127 bool enable) override;
128 void SetGeometryPriority(const std::string& object_name,
129 uint8_t priority) override;
130 void OverrideMaterial(const std::string& object_name,
131 const MaterialRecord& material) override;
132 void OverrideMaterial(const std::string& object_name,
133 const TriangleMeshModel& model) override;
134 void QueryGeometry(std::vector<std::string>& geometry) override;
135 std::uint64_t GetGeometryChangeId() const;
136
137 void OverrideMaterialAll(const MaterialRecord& material,
138 bool shader_only = true) override;
139
140 // Lighting Environment
141 bool AddPointLight(const std::string& light_name,
142 const Eigen::Vector3f& color,
143 const Eigen::Vector3f& position,
144 float intensity,
145 float falloff,
146 bool cast_shadows) override;
147 bool AddSpotLight(const std::string& light_name,
148 const Eigen::Vector3f& color,
149 const Eigen::Vector3f& position,
150 const Eigen::Vector3f& direction,
151 float intensity,
152 float falloff,
153 float inner_cone_angle,
154 float outer_cone_angle,
155 bool cast_shadows) override;
156 bool AddDirectionalLight(const std::string& light_name,
157 const Eigen::Vector3f& color,
158 const Eigen::Vector3f& direction,
159 float intensity,
160 bool cast_shadows) override;
161 Light& GetLight(const std::string& light_name) override;
162 void RemoveLight(const std::string& light_name) override;
163 void UpdateLight(const std::string& light_name,
164 const Light& light) override;
165 void UpdateLightColor(const std::string& light_name,
166 const Eigen::Vector3f& color) override;
167 void UpdateLightPosition(const std::string& light_name,
168 const Eigen::Vector3f& position) override;
169 void UpdateLightDirection(const std::string& light_name,
170 const Eigen::Vector3f& direction) override;
171 void UpdateLightIntensity(const std::string& light_name,
172 float intensity) override;
173 void UpdateLightFalloff(const std::string& light_name,
174 float falloff) override;
175 void UpdateLightConeAngles(const std::string& light_name,
176 float inner_cone_angle,
177 float outer_cone_angle) override;
178 void EnableLightShadow(const std::string& light_name,
179 bool cast_shadows) override;
180
181 void SetSunLight(const Eigen::Vector3f& direction,
182 const Eigen::Vector3f& color,
183 float intensity) override;
184 void EnableSunLight(bool enable) override;
185 void EnableSunLightShadows(bool enable) override;
186 void SetSunLightColor(const Eigen::Vector3f& color) override;
187 Eigen::Vector3f GetSunLightColor() override;
188 void SetSunLightIntensity(float intensity) override;
189 float GetSunLightIntensity() override;
190 void SetSunLightDirection(const Eigen::Vector3f& direction) override;
191 Eigen::Vector3f GetSunLightDirection() override;
192 void SetSunAngularRadius(float radius) override;
193 void SetSunHaloSize(float size) override;
194 void SetSunHaloFalloff(float falloff) override;
195
196 bool SetIndirectLight(const std::string& ibl_name) override;
197 const std::string& GetIndirectLight() override;
198 void EnableIndirectLight(bool enable) override;
199 void SetIndirectLightIntensity(float intensity) override;
200 float GetIndirectLightIntensity() override;
201 void SetIndirectLightRotation(const Transform& rotation) override;
203 void ShowSkybox(bool show) override;
204 bool GetSkyboxVisible() const override;
205 void SetBackground(
206 const Eigen::Vector4f& color,
207 const std::shared_ptr<geometry::Image> image = nullptr) override;
208 void SetBackground(TextureHandle image) override;
209 void EnableGroundPlane(bool enable, GroundPlane plane) override;
210 void SetGroundPlaneColor(const Eigen::Vector4f& color) override;
211
212 void RenderToImage(std::function<void(std::shared_ptr<geometry::Image>)>
213 callback) override;
215 std::function<void(std::shared_ptr<geometry::Image>)> callback)
216 override;
217
218 void ForEachActiveView(const std::function<void(FilamentView&)>& callback);
220 void ForEachView(const std::function<void(FilamentView&)>& callback) const;
221 bool HasGaussianSplatGeometry() const;
225 bool UsesGaussianSplatOutput(const FilamentView& view) const;
233
234 void Draw(filament::Renderer& renderer);
235
236 // NOTE: This method is to work around Filament limitation when rendering to
237 // depth buffer. Materials with SSR require multiple passes which causes a
238 // crash with render to depth since we must disable multiple passes (i.e.,
239 // post-processing) in order to get back valid, un-modified depth values.
240 void HideRefractedMaterials(bool hide = true);
241
242 // NOTE: Can GetNativeScene be removed?
243 filament::Scene* GetNativeScene() const { return scene_; }
244
245private:
246 void MarkGeometryChanged();
247
248 MaterialInstanceHandle AssignMaterialToFilamentGeometry(
249 filament::RenderableManager::Builder& builder,
250 const MaterialRecord& material);
251 enum BufferReuse { kNo, kYes };
252 bool CreateAndAddFilamentEntity(
253 const std::string& object_name,
254 GeometryBuffersBuilder& buffer_builder,
255 filament::Box& aabb,
258 const MaterialRecord& material,
259 BufferReuse reusing_vertex_buffer = BufferReuse::kNo);
260
261 filament::Engine& engine_;
262 FilamentResourceManager& resource_mgr_;
263 filament::Scene* scene_ = nullptr;
264 std::uint64_t geometry_change_id_ = 1;
265
266 struct TextureMaps {
267 rendering::TextureHandle albedo_map =
269 rendering::TextureHandle normal_map =
271 rendering::TextureHandle ao_rough_metal_map =
273 rendering::TextureHandle reflectance_map =
275 rendering::TextureHandle clear_coat_map =
277 rendering::TextureHandle clear_coat_roughness_map =
279 rendering::TextureHandle anisotropy_map =
281 rendering::TextureHandle gradient_texture =
283 };
284
285 struct GeometryMaterialInstance {
286 TextureMaps maps;
287 MaterialRecord properties;
288 MaterialInstanceHandle mat_instance;
289 };
290
291 struct RenderableGeometry {
292 std::string name;
293 bool visible = true;
294 bool was_hidden_before_picking = false;
295 bool cast_shadows = true;
296 bool receive_shadows = true;
297 bool culling_enabled = true;
298 int priority = -1; // default priority
299
300 GeometryMaterialInstance mat;
301 // Stored AABB for geometry registered without a Filament entity
302 // (e.g. Gaussian splats rendered via compute, not raster).
303 geometry::AxisAlignedBoundingBox aabb;
304
305 // Range within the merged Gaussian splat packed-attrs buffer.
306 // Both are zero for non-Gaussian geometry.
307 std::uint32_t gs_splat_start = 0;
308 std::uint32_t gs_splat_count = 0;
309
310 // Filament resources — filament_entity is null for compute-only
311 // geometry.
312 utils::Entity filament_entity;
313 filament::RenderableManager::PrimitiveType primitive_type;
316 void ReleaseResources(filament::Engine& engine,
317 FilamentResourceManager& manager);
318 };
319
320 struct LightEntity {
321 bool enabled = true;
322 utils::Entity filament_entity;
323 };
324
325 // NOTE: ViewContainer and views_ are temporary
326 struct ViewContainer {
327 std::unique_ptr<FilamentView> view;
328 bool is_active = true;
329 int render_count = -1;
330 };
331 std::unordered_map<REHandle_abstract, ViewContainer> views_;
332
333 std::vector<RenderableGeometry*> GetGeometry(const std::string& object_name,
334 bool warn_if_not_found = true);
335 bool GeometryIsModel(const std::string& object_name) const;
336 LightEntity* GetLightInternal(const std::string& light_name,
337 bool warn_if_not_found = true);
338 void OverrideMaterialInternal(RenderableGeometry* geom,
339 const MaterialRecord& material,
340 bool shader_only = false);
341 void UpdateMaterialProperties(RenderableGeometry& geom);
342 void UpdateDefaultLit(GeometryMaterialInstance& geom_mi);
343 void UpdateDefaultLitSSR(GeometryMaterialInstance& geom_mi);
344 void UpdateDefaultUnlit(GeometryMaterialInstance& geom_mi);
345 void UpdateNormalShader(GeometryMaterialInstance& geom_mi);
346 void UpdateDepthShader(GeometryMaterialInstance& geom_mi);
347 void UpdateDepthValueShader(GeometryMaterialInstance& geom_mi);
348 void UpdateGradientShader(GeometryMaterialInstance& geom_mi);
349 void UpdateSolidColorShader(GeometryMaterialInstance& geom_mi);
350 void UpdateBackgroundShader(GeometryMaterialInstance& geom_mi);
351 void UpdateGroundPlaneShader(GeometryMaterialInstance& geom_mi);
352 void UpdateLineShader(GeometryMaterialInstance& geom_mi);
353 void UpdateUnlitPolygonOffsetShader(GeometryMaterialInstance& geom_mi);
354 utils::EntityInstance<filament::TransformManager>
355 GetGeometryTransformInstance(RenderableGeometry* geom);
356 void CreateSunDirectionalLight();
357 void CreateBackgroundGeometry();
358 void CreateGroundPlaneGeometry();
359
360 std::unordered_map<std::string, RenderableGeometry> geometries_;
361 std::unordered_map<std::string, LightEntity> lights_;
362 std::unordered_map<std::string, std::vector<std::string>> model_geometries_;
363
364 Eigen::Vector4f background_color_;
365 std::shared_ptr<geometry::Image> background_image_;
366 std::string ibl_name_;
367 bool ibl_enabled_ = false;
368 bool skybox_enabled_ = false;
369 std::weak_ptr<filament::IndirectLight> indirect_light_;
370 std::weak_ptr<filament::Skybox> skybox_;
371 IndirectLightHandle ibl_handle_;
372 SkyboxHandle skybox_handle_;
373 LightEntity sun_;
375 std::unordered_map<std::string, GaussianSplatPackedAttrs>
376 per_object_gs_attrs_;
379 std::unique_ptr<GaussianSplatPackedAttrs> merged_gs_attrs_;
380
382 void CacheGaussianSplatData(const std::string& name,
383 const t::geometry::PointCloud& cloud,
384 const MaterialRecord& material);
387 void RebuildMergedGaussianData();
388};
389
390} // namespace rendering
391} // namespace visualization
392} // namespace open3d
std::shared_ptr< core::Tensor > image
Definition FilamentRenderer.cpp:328
std::function< void(std::shared_ptr< core::Tensor >)> callback
Definition FilamentRenderer.cpp:327
math::float4 color
Definition LineSetBuffers.cpp:45
math::float3 position
Definition LineSetBuffers.cpp:43
SYCLDevice properties
Definition SYCLContext.cpp:49
std::vector< UVAtlasVertex > vb
Definition UVUnwrapping.cpp:27
std::vector< uint8_t > ib
Definition UVUnwrapping.cpp:29
A bounding box that is aligned along the coordinate axes and defined by the min_bound and max_bound.
Definition BoundingVolume.h:285
The base geometry class for 3D geometries.
Definition Geometry3D.h:29
The base geometry class.
Definition Geometry.h:23
A point cloud contains a list of 3D points.
Definition PointCloud.h:81
Definition FilamentResourceManager.h:50
static const TextureHandle kDefaultNormalMap
Definition FilamentResourceManager.h:71
static const TextureHandle kDefaultTexture
Definition FilamentResourceManager.h:69
void UpdateLightDirection(const std::string &light_name, const Eigen::Vector3f &direction) override
Definition FilamentScene.cpp:1924
Eigen::Vector3f GetSunLightColor() override
Definition FilamentScene.cpp:2045
void UpdateLightIntensity(const std::string &light_name, float intensity) override
Definition FilamentScene.cpp:1936
const std::string & GetIndirectLight() override
Definition FilamentScene.cpp:2132
void EnableIndirectLight(bool enable) override
Definition FilamentScene.cpp:2134
~FilamentScene()
Definition FilamentScene.cpp:256
void SetActiveCamera(const std::string &camera_name) override
Definition FilamentScene.cpp:644
void SetSunLightColor(const Eigen::Vector3f &color) override
Definition FilamentScene.cpp:2038
void RenderToDepthImage(std::function< void(std::shared_ptr< geometry::Image >)> callback) override
Size of image is the size of the window.
Definition FilamentScene.cpp:2365
void SetGeometryTransform(const std::string &object_name, const Transform &transform) override
Definition FilamentScene.cpp:1203
Eigen::Vector3f GetSunLightDirection() override
Definition FilamentScene.cpp:2081
bool AddPointLight(const std::string &light_name, const Eigen::Vector3f &color, const Eigen::Vector3f &position, float intensity, float falloff, bool cast_shadows) override
Definition FilamentScene.cpp:1766
void SetSunLightDirection(const Eigen::Vector3f &direction) override
Definition FilamentScene.cpp:2053
void Draw(filament::Renderer &renderer)
Definition FilamentScene.cpp:2452
void HideRefractedMaterials(bool hide=true)
Definition FilamentScene.cpp:2468
void RenderToImage(std::function< void(std::shared_ptr< geometry::Image >)> callback) override
Size of image is the size of the window.
Definition FilamentScene.cpp:2359
void EnableSunLight(bool enable) override
Definition FilamentScene.cpp:2006
void SetBackground(const Eigen::Vector4f &color, const std::shared_ptr< geometry::Image > image=nullptr) override
Definition FilamentScene.cpp:2225
void UpdateLightColor(const std::string &light_name, const Eigen::Vector3f &color) override
Definition FilamentScene.cpp:1899
Transform GetIndirectLightRotation() override
Definition FilamentScene.cpp:2167
void EnableLightShadow(const std::string &light_name, bool cast_shadows) override
Definition FilamentScene.cpp:1964
bool AddDirectionalLight(const std::string &light_name, const Eigen::Vector3f &color, const Eigen::Vector3f &direction, float intensity, bool cast_shadows) override
Definition FilamentScene.cpp:1844
void SetSunLightIntensity(float intensity) override
Definition FilamentScene.cpp:2024
geometry::AxisAlignedBoundingBox GetGeometryBoundingBox(const std::string &object_name) override
Definition FilamentScene.cpp:1238
void UpdateLightPosition(const std::string &light_name, const Eigen::Vector3f &position) override
Definition FilamentScene.cpp:1910
TextureHandle GetColorBufferForView(const FilamentView &view) const
Definition FilamentScene.cpp:443
Transform GetGeometryTransform(const std::string &object_name) override
Definition FilamentScene.cpp:1223
bool HasNonGaussianVisibleGeometry() const
Definition FilamentScene.cpp:414
void ForEachActiveView(const std::function< void(FilamentView &)> &callback)
Definition FilamentScene.cpp:385
void RemoveGeometry(const std::string &object_name) override
Definition FilamentScene.cpp:1099
bool HasGaussianSplatGeometry() const
Definition FilamentScene.cpp:405
bool SetIndirectLight(const std::string &ibl_name) override
Definition FilamentScene.cpp:2089
void SetGroundPlaneColor(const Eigen::Vector4f &color) override
Definition FilamentScene.cpp:2333
bool GeometryIsVisible(const std::string &object_name) override
Definition FilamentScene.cpp:1172
Light & GetLight(const std::string &light_name) override
Definition FilamentScene.cpp:1879
void SetIndirectLightIntensity(float intensity) override
Definition FilamentScene.cpp:2147
ViewHandle AddView(std::int32_t x, std::int32_t y, std::uint32_t w, std::uint32_t h) override
Definition FilamentScene.cpp:357
void SetSunAngularRadius(float radius) override
Definition FilamentScene.cpp:2060
void ForEachView(const std::function< void(FilamentView &)> &callback) const
Iterate over ALL views (including inactive/cached ones).
Definition FilamentScene.cpp:396
float GetSunLightIntensity() override
Definition FilamentScene.cpp:2031
void UpdateLightFalloff(const std::string &light_name, float falloff) override
Definition FilamentScene.cpp:1947
void EnableSunLightShadows(bool enable) override
Definition FilamentScene.cpp:2017
void RemoveView(const ViewHandle &view_id) override
Definition FilamentScene.cpp:635
const GaussianSplatPackedAttrs * GetGaussianSplatPackedAttrs() const
Definition FilamentScene.cpp:464
bool UsesGaussianSplatOutput(const FilamentView &view) const
Definition FilamentScene.cpp:426
bool GetSkyboxVisible() const override
Definition FilamentScene.cpp:2191
View * GetView(const ViewHandle &view_id) const override
Definition FilamentScene.cpp:376
void OverrideMaterialAll(const MaterialRecord &material, bool shader_only=true) override
Definition FilamentScene.cpp:1751
void SetRenderOnce(const ViewHandle &view_id) override
Definition FilamentScene.cpp:627
Scene * Copy() override
Definition FilamentScene.cpp:296
void AddCamera(const std::string &camera_name, std::shared_ptr< Camera > cam) override
Definition FilamentScene.cpp:639
void SetGeometryCulling(const std::string &object_name, bool enable) override
Definition FilamentScene.cpp:1285
void EnableGroundPlane(bool enable, GroundPlane plane) override
Definition FilamentScene.cpp:2314
void SetSunHaloSize(float size) override
Definition FilamentScene.cpp:2067
std::uint64_t GetGeometryChangeId() const
Definition FilamentScene.cpp:241
void ShowSkybox(bool show) override
Definition FilamentScene.cpp:2177
filament::Scene * GetNativeScene() const
Definition FilamentScene.h:243
bool AddGeometry(const std::string &object_name, const geometry::Geometry3D &geometry, const MaterialRecord &material, const std::string &downsampled_name="", size_t downsample_threshold=SIZE_MAX) override
Definition FilamentScene.cpp:660
void UpdateGeometry(const std::string &object_name, const t::geometry::PointCloud &point_cloud, uint32_t update_flags) override
Definition FilamentScene.cpp:944
void SetGeometryPriority(const std::string &object_name, uint8_t priority) override
Definition FilamentScene.cpp:1303
void SetViewActive(const ViewHandle &view_id, bool is_active) override
Definition FilamentScene.cpp:619
void ShowGeometry(const std::string &object_name, bool show) override
Definition FilamentScene.cpp:1133
void RemoveLight(const std::string &light_name) override
Definition FilamentScene.cpp:1890
void SetSunHaloFalloff(float falloff) override
Definition FilamentScene.cpp:2074
void QueryGeometry(std::vector< std::string > &geometry) override
Definition FilamentScene.cpp:1745
void SetSunLight(const Eigen::Vector3f &direction, const Eigen::Vector3f &color, float intensity) override
Definition FilamentScene.cpp:1995
void SetIndirectLightRotation(const Transform &rotation) override
Definition FilamentScene.cpp:2160
float GetIndirectLightIntensity() override
Definition FilamentScene.cpp:2153
void GeometryShadows(const std::string &object_name, bool cast_shadows, bool receive_shadows) override
Definition FilamentScene.cpp:1266
Eigen::Transform< float, 3, Eigen::Affine > Transform
Definition FilamentScene.h:72
void UpdateLightConeAngles(const std::string &light_name, float inner_cone_angle, float outer_cone_angle) override
Definition FilamentScene.cpp:1958
void RemoveCamera(const std::string &camera_name) override
Definition FilamentScene.cpp:642
bool HasGeometry(const std::string &object_name) const override
Definition FilamentScene.cpp:936
void UpdateLight(const std::string &light_name, const Light &light) override
Definition FilamentScene.cpp:1885
TextureHandle GetDepthBufferForView(const FilamentView &view) const
Definition FilamentScene.cpp:450
void OverrideMaterial(const std::string &object_name, const MaterialRecord &material) override
Definition FilamentScene.cpp:1705
void InvalidateGaussianSplatOutput(FilamentView &view)
Definition FilamentScene.cpp:457
bool AddSpotLight(const std::string &light_name, const Eigen::Vector3f &color, const Eigen::Vector3f &position, const Eigen::Vector3f &direction, float intensity, float falloff, float inner_cone_angle, float outer_cone_angle, bool cast_shadows) override
Definition FilamentScene.cpp:1802
int size
Definition FilePCD.cpp:41
std::string name
Definition FilePCD.cpp:40
Definition FilamentEngine.h:15
REHandle< EntityType::IndexBuffer > IndexBufferHandle
Definition RendererHandle.h:139
REHandle< EntityType::VertexBuffer > VertexBufferHandle
Definition RendererHandle.h:138
REHandle< EntityType::MaterialInstance > MaterialInstanceHandle
Definition RendererHandle.h:135
REHandle< EntityType::Skybox > SkyboxHandle
Definition RendererHandle.h:132
REHandle< EntityType::IndirectLight > IndirectLightHandle
Definition RendererHandle.h:131
Definition PinholeCameraIntrinsic.cpp:16
Definition GaussianSplatDataPacking.h:129