Up to date

This page is up to date for Godot 4.2. If you still find outdated information, please open an issue.

RDFramebufferPass

Inherits: RefCounted < Object

Framebuffer pass attachment description (used by RenderingDevice).

Description

This class contains the list of attachment descriptions for a framebuffer pass. Each points with an index to a previously supplied list of texture attachments.

Multipass framebuffers can optimize some configurations in mobile. On desktop, they provide little to no advantage.

This object is used by RenderingDevice.

Properties

PackedInt32Array

color_attachments

PackedInt32Array()

int

depth_attachment

-1

PackedInt32Array

input_attachments

PackedInt32Array()

PackedInt32Array

preserve_attachments

PackedInt32Array()

PackedInt32Array

resolve_attachments

PackedInt32Array()


Constants

ATTACHMENT_UNUSED = -1

Attachment is unused.


Property Descriptions

PackedInt32Array color_attachments = PackedInt32Array()

Color attachments in order starting from 0. If this attachment is not used by the shader, pass ATTACHMENT_UNUSED to skip.


int depth_attachment = -1

  • void set_depth_attachment ( int value )

  • int get_depth_attachment ( )

Depth attachment. ATTACHMENT_UNUSED should be used if no depth buffer is required for this pass.


PackedInt32Array input_attachments = PackedInt32Array()

  • void se