Class reference

RDFramebufferPass

Inherits RefCounted

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()

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

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.

PackedInt32Array preserve_attachments = PackedInt32Array()

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

PackedInt32Array resolve_attachments = PackedInt32Array()

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

Constants

ATTACHMENT_UNUSED = -1

Attachment is unused.

Source revision 4f5b14abade2
Connection interrupted. Reload×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.