Render scene buffer implementation for the RenderingDevice based renderers.
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.
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.
Buffers are only guaranteed to exist during rendering of the viewport.
[b]Note:[/b] This is an internal rendering server object, do not instantiate this from script.
Frees all buffers related to this context.
Create a new texture with the given definition and cache this under the given name. Will return the existing texture if it already exists.
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.
Create a new texture view for an existing texture and cache this under the given view_name. Will return the existing teture view if it already exists. Will error if the source texture doesn't exist.
Returns the specified layer from the color texture we are rendering 3D content to.
If [param msaa] is [b]true[/b] and MSAA is enabled, this returns the MSAA variant of the buffer.
Returns the color texture we are rendering 3D content to. If multiview is used this will be a texture array with all views.
If [param msaa] is [b]true[/b] and MSAA is enabled, this returns the MSAA variant of the buffer.
Returns the specified layer from the depth texture we are rendering 3D content to.
If [param msaa] is [b]true[/b] and MSAA is enabled, this returns the MSAA variant of the buffer.
Returns the depth texture we are rendering 3D content to. If multiview is used this will be a texture array with all views.
If [param msaa] is [b]true[/b] and MSAA is enabled, this returns the MSAA variant of the buffer.
Returns the FSR sharpness value used while rendering the 3D content (if [method get_scaling_3d_mode] is an FSR mode).
Returns the internal size of the render buffer (size before upscaling) with which textures are created by default.
Returns the applied 3D MSAA mode for this viewport.
Returns the render target associated with this buffers object.
Returns the scaling mode used for upscaling.
Returns the screen-space antialiasing method applied.
Returns the target size of the render buffer (size after upscaling).
Returns a cached texture with this name.
Returns the texture format information with which a cached texture was created.
Returns the number of MSAA samples used.
Returns a specific slice (layer or mipmap) for a cached texture.
Returns the texture size of a given slice of a cached texture.
Returns a specific view of a slice (layer or mipmap) for a cached texture.
Returns [code]true[/code] if debanding is enabled.
Returns [code]true[/code] if TAA is enabled.
Returns the specified layer from the velocity texture we are rendering 3D content to.
Returns the velocity texture we are rendering 3D content to. If multiview is used this will be a texture array with all views.
If [param msaa] is [b]true[/b] and MSAA is enabled, this returns the MSAA variant of the buffer.
Returns the view count for the associated viewport.
Returns [code]true[/code] if a cached texture exists for this name.