RDFramebufferPass
Inherits:RefCounted<Object
Framebuffer pass attachment description (used byRenderingDevice).
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 byRenderingDevice.
Properties
| ||
| ||
| ||
| ||
|
Constants
ATTACHMENT_UNUSED =-1
🔗
Attachment is unused.
Property Descriptions
PackedInt32Arraycolor_attachments =PackedInt32Array()
🔗
PackedInt32Arrayget_color_attachments()
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 iscopied and any changes to it will not update the original property value. SeePackedInt32Array for more details.
intget_depth_attachment()
Depth attachment. ATTACHMENT_UNUSED should be used if no depth buffer is required for this pass.
PackedInt32Arrayinput_attachments =PackedInt32Array()
🔗
PackedInt32Arrayget_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 theRDUniform for the uniform set.
Note: The returned array iscopied and any changes to it will not update the original property value. SeePackedInt32Array for more details.
PackedInt32Arraypreserve_attachments =PackedInt32Array()
🔗
PackedInt32Arrayget_preserve_attachments()
Attachments to preserve in this pass (otherwise they are erased).
Note: The returned array iscopied and any changes to it will not update the original property value. SeePackedInt32Array for more details.
PackedInt32Arrayresolve_attachments =PackedInt32Array()
🔗
PackedInt32Arrayget_resolve_attachments()
If the color attachments are multisampled, non-multisampled resolve attachments can be provided.
Note: The returned array iscopied and any changes to it will not update the original property value. SeePackedInt32Array for more details.