Debian Codegraph @

servers/rendering/renderer_rd/storage_rd/render_data_rd.h

raw symbols SCIP
1 /**************************************************************************/
2 /* render_data_rd.h */
3 /**************************************************************************/
4 /* This file is part of: */
5 /* GODOT ENGINE */
6 /* https://godotengine.org */
7 /**************************************************************************/
8 /* Copyright (c) 2014-present Godot Engine contributors (see AUTHORS.md). */
9 /* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur. */
10 /* */
11 /* Permission is hereby granted, free of charge, to any person obtaining */
12 /* a copy of this software and associated documentation files (the */
13 /* "Software"), to deal in the Software without restriction, including */
14 /* without limitation the rights to use, copy, modify, merge, publish, */
15 /* distribute, sublicense, and/or sell copies of the Software, and to */
16 /* permit persons to whom the Software is furnished to do so, subject to */
17 /* the following conditions: */
18 /* */
19 /* The above copyright notice and this permission notice shall be */
20 /* included in all copies or substantial portions of the Software. */
21 /* */
22 /* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, */
23 /* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF */
24 /* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. */
25 /* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY */
26 /* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, */
27 /* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */
28 /* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
29 /**************************************************************************/
30
31 #pragma once
32
33 #include "servers/rendering/renderer_rd/storage_rd/render_scene_buffers_rd.h"
34 #include "servers/rendering/renderer_rd/storage_rd/render_scene_data_rd.h"
35 #include "servers/rendering/storage/render_data.h"
36
37 class RenderDataRD : public RenderData {
38 GDCLASS(RenderDataRD, RenderData);
39
40 public:
41 // Access methods to expose data externally
42 virtual Ref<RenderSceneBuffers> get_render_scene_buffers() const override { return render_buffers; }
43 virtual RenderSceneData *get_render_scene_data() const override { return scene_data; }
44
45 virtual RID get_environment() const override { return environment; }
46 virtual RID get_camera_attributes() const override { return camera_attributes; }
47
48 // Members are publicly accessible within the render engine.
49 Ref<RenderSceneBuffersRD> render_buffers;
50 RenderSceneDataRD *scene_data = nullptr;
51
52 const PagedArray<RenderGeometryInstance *> *instances = nullptr;
53 const PagedArray<RID> *lights = nullptr;
54 const PagedArray<RID> *reflection_probes = nullptr;
55 const PagedArray<RID> *voxel_gi_instances = nullptr;
56 const PagedArray<RID> *decals = nullptr;
57 const PagedArray<RID> *lightmaps = nullptr;
58 const PagedArray<RID> *fog_volumes = nullptr;
59 RID environment;
60 RID camera_attributes;
61 RID compositor;
62 RID shadow_atlas;
63 RID occluder_debug_tex;
64 RID reflection_atlas;
65 RID reflection_probe;
66 int reflection_probe_pass = 0;
67
68 RID cluster_buffer;
69 uint32_t cluster_size = 0;
70 uint32_t cluster_max_elements = 0;
71
72 uint32_t directional_light_count = 0;
73 bool directional_light_soft_shadows = false;
74
75 bool lightmap_bicubic_filter = false;
76
77 RenderingMethod::RenderInfo *render_info = nullptr;
78
79 /* Viewport data */
80 bool transparent_bg = false;
81 Rect2i render_region;
82
83 /* Shadow data */
84 const RendererSceneRender::RenderShadowData *render_shadows = nullptr;
85 int render_shadow_count = 0;
86
87 LocalVector<int> cube_shadows;
88 LocalVector<int> shadows;
89 LocalVector<int> directional_shadows;
90
91 /* GI info */
92 const RendererSceneRender::RenderSDFGIData *render_sdfgi_regions = nullptr;
93 int render_sdfgi_region_count = 0;
94 const RendererSceneRender::RenderSDFGIUpdateData *sdfgi_update_data = nullptr;
95
96 uint32_t voxel_gi_count = 0;
97 };