Abstract 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 only exposed for GDExtension plugins.
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.
Returns the color texture we are rendering 3D content to. If multiview is used this will be a texture array with all views.
Returns the specified layer from the depth texture we are rendering 3D content to.
Returns the depth texture we are rendering 3D content to. If multiview is used this will be a texture array with all views.
Returns the internal size of the render buffer (size before upscaling) with which textures are created by default.
Returns the render target associated with this buffers object.
Returns a cached texture with this name.
Returns the texture format information with which a cached texture was created.
Returns a specific slice (layer or mipmap) for a cached texture.
Returns the texture size of a given slice of a cached texture.
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.
Returns the view count for the associated viewport.
Returns [code]true[/code] if a cached texture exists for this name.