Up to date

This page is up to date for Godot 4.3. 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.

Note: The returned array is copied and any changes to it will not update the original property value. See PackedInt32Array for more details.


int depth_attachment = -1 πŸ”—

  • void set_depth_attachment(value: int)

  • int get_depth_attachment()

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


PackedInt32Array input_attachments = PackedInt32Array() πŸ”—

Used for multipass framebuffers (more than one render pass). Converts an attachment to an input. Make sure to also supply it properly in the RDUniform for the uniform set.

Note: The returned array is copied and any changes to it will not update the original property value. See PackedInt32Array for more details.


PackedInt32Array preserve_attachments = PackedInt32Array() πŸ”—

Attachments to preserve in this pass (otherwise they are erased).

Note: The returned array is copied and any changes to it will not update the original property value. See PackedInt32Array for more details.


PackedInt32Array resolve_attachments = PackedInt32Array() πŸ”—

If the color attachments are multisampled, non-multisampled resolve attachments can be provided.

Note: The returned array is copied and any changes to it will not update the original property value. See PackedInt32Array for more details.