Debian Codegraph @

doc/classes/RenderSceneBuffersRD.xml

raw symbols SCIP
1 <?xml version="1.0" encoding="UTF-8" ?>
2 <class name="RenderSceneBuffersRD" inherits="RenderSceneBuffers" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd">
3 <brief_description>
4 Render scene buffer implementation for the RenderingDevice based renderers.
5 </brief_description>
6 <description>
7 This object manages all 3D rendering buffers for the rendering device based renderers. An instance of this object is created for every viewport that has 3D rendering enabled. See also [RenderSceneBuffers].
8 All buffers are organized in [b]contexts[/b]. The default context is called [b]render_buffers[/b] and can contain amongst others the color buffer, depth buffer, velocity buffers, VRS density map and MSAA variants of these buffers.
9 Buffers are only guaranteed to exist during rendering of the viewport.
10 [b]Note:[/b] This is an internal rendering server object. Do not instantiate this class from a script.
11 </description>
12 <tutorials>
13 </tutorials>
14 <methods>
15 <method name="clear_context">
16 <return type="void" />
17 <param index="0" name="context" type="StringName" />
18 <description>
19 Frees all buffers related to this context.
20 </description>
21 </method>
22 <method name="create_texture">
23 <return type="RID" />
24 <param index="0" name="context" type="StringName" />
25 <param index="1" name="name" type="StringName" />
26 <param index="2" name="data_format" type="int" enum="RenderingDevice.DataFormat" />
27 <param index="3" name="usage_bits" type="int" />
28 <param index="4" name="texture_samples" type="int" enum="RenderingDevice.TextureSamples" />
29 <param index="5" name="size" type="Vector2i" />
30 <param index="6" name="layers" type="int" />
31 <param index="7" name="mipmaps" type="int" />
32 <param index="8" name="unique" type="bool" />
33 <param index="9" name="discardable" type="bool" />
34 <description>
35 Create a new texture with the given definition and cache this under the given name. Will return the existing texture if it already exists.
36 </description>
37 </method>
38 <method name="create_texture_from_format">
39 <return type="RID" />
40 <param index="0" name="context" type="StringName" />
41 <param index="1" name="name" type="StringName" />
42 <param index="2" name="format" type="RDTextureFormat" />
43 <param index="3" name="view" type="RDTextureView" />
44 <param index="4" name="unique" type="bool" />
45 <description>
46 Create a new texture using the given format and view and cache this under the given name. Will return the existing texture if it already exists.
47 </description>
48 </method>
49 <method name="create_texture_view">
50 <return type="RID" />
51 <param index="0" name="context" type="StringName" />
52 <param index="1" name="name" type="StringName" />
53 <param index="2" name="view_name" type="StringName" />
54 <param index="3" name="view" type="RDTextureView" />
55 <description>
56 Create a new texture view for an existing texture and cache this under the given [param view_name]. Will return the existing texture view if it already exists. Will error if the source texture doesn't exist.
57 </description>
58 </method>
59 <method name="get_color_layer">
60 <return type="RID" />
61 <param index="0" name="layer" type="int" />
62 <param index="1" name="msaa" type="bool" default="false" />
63 <description>
64 Returns the specified layer from the color texture we are rendering 3D content to.
65 If [param msaa] is [code]true[/code] and MSAA is enabled, this returns the MSAA variant of the buffer.
66 </description>
67 </method>
68 <method name="get_color_texture">
69 <return type="RID" />
70 <param index="0" name="msaa" type="bool" default="false" />
71 <description>
72 Returns the color texture we are rendering 3D content to. If multiview is used this will be a texture array with all views.
73 If [param msaa] is [code]true[/code] and MSAA is enabled, this returns the MSAA variant of the buffer.
74 </description>
75 </method>
76 <method name="get_depth_layer">
77 <return type="RID" />
78 <param index="0" name="layer" type="int" />
79 <param index="1" name="msaa" type="bool" default="false" />
80 <description>
81 Returns the specified layer from the depth texture we are rendering 3D content to.
82 If [param msaa] is [code]true[/code] and MSAA is enabled, this returns the MSAA variant of the buffer.
83 </description>
84 </method>
85 <method name="get_depth_texture">
86 <return type="RID" />
87 <param index="0" name="msaa" type="bool" default="false" />
88 <description>
89 Returns the depth texture we are rendering 3D content to. If multiview is used this will be a texture array with all views.
90 If [param msaa] is [code]true[/code] and MSAA is enabled, this returns the MSAA variant of the buffer.
91 </description>
92 </method>
93 <method name="get_fsr_sharpness" qualifiers="const">
94 <return type="float" />
95 <description>
96 Returns the FSR sharpness value used while rendering the 3D content (if [method get_scaling_3d_mode] is an FSR mode).
97 </description>
98 </method>
99 <method name="get_internal_size" qualifiers="const">
100 <return type="Vector2i" />
101 <description>
102 Returns the internal size of the render buffer (size before upscaling) with which textures are created by default.
103 </description>
104 </method>
105 <method name="get_msaa_3d" qualifiers="const">
106 <return type="int" enum="RenderingServer.ViewportMSAA" />
107 <description>
108 Returns the applied 3D MSAA mode for this viewport.
109 </description>
110 </method>
111 <method name="get_render_target" qualifiers="const">
112 <return type="RID" />
113 <description>
114 Returns the render target associated with this buffers object.
115 </description>
116 </method>
117 <method name="get_scaling_3d_mode" qualifiers="const">
118 <return type="int" enum="RenderingServer.ViewportScaling3DMode" />
119 <description>
120 Returns the scaling mode used for upscaling.
121 </description>
122 </method>
123 <method name="get_screen_space_aa" qualifiers="const">
124 <return type="int" enum="RenderingServer.ViewportScreenSpaceAA" />
125 <description>
126 Returns the screen-space antialiasing method applied.
127 </description>
128 </method>
129 <method name="get_target_size" qualifiers="const">
130 <return type="Vector2i" />
131 <description>
132 Returns the target size of the render buffer (size after upscaling).
133 </description>
134 </method>
135 <method name="get_texture" qualifiers="const">
136 <return type="RID" />
137 <param index="0" name="context" type="StringName" />
138 <param index="1" name="name" type="StringName" />
139 <description>
140 Returns a cached texture with this name.
141 </description>
142 </method>
143 <method name="get_texture_format" qualifiers="const">
144 <return type="RDTextureFormat" />
145 <param index="0" name="context" type="StringName" />
146 <param index="1" name="name" type="StringName" />
147 <description>
148 Returns the texture format information with which a cached texture was created.
149 </description>
150 </method>
151 <method name="get_texture_samples" qualifiers="const">
152 <return type="int" enum="RenderingDevice.TextureSamples" />
153 <description>
154 Returns the number of MSAA samples used.
155 </description>
156 </method>
157 <method name="get_texture_slice">
158 <return type="RID" />
159 <param index="0" name="context" type="StringName" />
160 <param index="1" name="name" type="StringName" />
161 <param index="2" name="layer" type="int" />
162 <param index="3" name="mipmap" type="int" />
163 <param index="4" name="layers" type="int" />
164 <param index="5" name="mipmaps" type="int" />
165 <description>
166 Returns a specific slice (layer or mipmap) for a cached texture.
167 </description>
168 </method>
169 <method name="get_texture_slice_size">
170 <return type="Vector2i" />
171 <param index="0" name="context" type="StringName" />
172 <param index="1" name="name" type="StringName" />
173 <param index="2" name="mipmap" type="int" />
174 <description>
175 Returns the texture size of a given slice of a cached texture.
176 </description>
177 </method>
178 <method name="get_texture_slice_view">
179 <return type="RID" />
180 <param index="0" name="context" type="StringName" />
181 <param index="1" name="name" type="StringName" />
182 <param index="2" name="layer" type="int" />
183 <param index="3" name="mipmap" type="int" />
184 <param index="4" name="layers" type="int" />
185 <param index="5" name="mipmaps" type="int" />
186 <param index="6" name="view" type="RDTextureView" />
187 <description>
188 Returns a specific view of a slice (layer or mipmap) for a cached texture.
189 </description>
190 </method>
191 <method name="get_use_debanding" qualifiers="const">
192 <return type="bool" />
193 <description>
194 Returns [code]true[/code] if debanding is enabled.
195 </description>
196 </method>
197 <method name="get_use_taa" qualifiers="const">
198 <return type="bool" />
199 <description>
200 Returns [code]true[/code] if TAA is enabled.
201 </description>
202 </method>
203 <method name="get_velocity_layer">
204 <return type="RID" />
205 <param index="0" name="layer" type="int" />
206 <param index="1" name="msaa" type="bool" default="false" />
207 <description>
208 Returns the specified layer from the velocity texture we are rendering 3D content to.
209 </description>
210 </method>
211 <method name="get_velocity_texture">
212 <return type="RID" />
213 <param index="0" name="msaa" type="bool" default="false" />
214 <description>
215 Returns the velocity texture we are rendering 3D content to. If multiview is used this will be a texture array with all views.
216 If [param msaa] is [b]true[/b] and MSAA is enabled, this returns the MSAA variant of the buffer.
217 </description>
218 </method>
219 <method name="get_view_count" qualifiers="const">
220 <return type="int" />
221 <description>
222 Returns the view count for the associated viewport.
223 </description>
224 </method>
225 <method name="has_texture" qualifiers="const">
226 <return type="bool" />
227 <param index="0" name="context" type="StringName" />
228 <param index="1" name="name" type="StringName" />
229 <description>
230 Returns [code]true[/code] if a cached texture exists for this name.
231 </description>
232 </method>
233 </methods>
234 </class>