RDFramebufferPass

Inherits: RefCounted < Object

Framebuffer pass attachment description.

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.

Constants

  • ATTACHMENT_UNUSED = -1

Property Descriptions

Default

PackedInt32Array()

Setter

set_color_attachments(value)

Getter

get_color_attachments()

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


  • int depth_attachment

Default

-1

Setter

set_depth_attachment(value)

Getter

get_depth_attachment()

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


Default

PackedInt32Array()

Setter

set_input_attachments(value)

Getter

get_input_attachments()

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.


Default

PackedInt32Array()

Setter

set_preserve_attachments(value)

Getter

get_preserve_attachments()

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


Default

PackedInt32Array()

Setter

set_resolve_attachments(value)

Getter

get_resolve_attachments()

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