0.2.0-dev Download ZIP
35 lines ·2.2 KB Raw
| 1 | <?xml version="1.0" encoding="UTF-8" ?> |
| 2 | <class name="RDFramebufferPass" inherits="RefCounted" api_type="core" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd"> |
| 3 | <brief_description> |
| 4 | Framebuffer pass attachment description (used by [RenderingDevice]). |
| 5 | </brief_description> |
| 6 | <description> |
| 7 | 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. |
| 8 | Multipass framebuffers can optimize some configurations in mobile. On desktop, they provide little to no advantage. |
| 9 | This object is used by [RenderingDevice]. |
| 10 | </description> |
| 11 | <tutorials> |
| 12 | </tutorials> |
| 13 | <members> |
| 14 | <member name="color_attachments" type="PackedInt32Array" setter="set_color_attachments" getter="get_color_attachments" default="PackedInt32Array()"> |
| 15 | Color attachments in order starting from 0. If this attachment is not used by the shader, pass ATTACHMENT_UNUSED to skip. |
| 16 | </member> |
| 17 | <member name="depth_attachment" type="int" setter="set_depth_attachment" getter="get_depth_attachment" default="-1"> |
| 18 | Depth attachment. ATTACHMENT_UNUSED should be used if no depth buffer is required for this pass. |
| 19 | </member> |
| 20 | <member name="input_attachments" type="PackedInt32Array" setter="set_input_attachments" getter="get_input_attachments" default="PackedInt32Array()"> |
| 21 | 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. |
| 22 | </member> |
| 23 | <member name="preserve_attachments" type="PackedInt32Array" setter="set_preserve_attachments" getter="get_preserve_attachments" default="PackedInt32Array()"> |
| 24 | Attachments to preserve in this pass (otherwise they are erased). |
| 25 | </member> |
| 26 | <member name="resolve_attachments" type="PackedInt32Array" setter="set_resolve_attachments" getter="get_resolve_attachments" default="PackedInt32Array()"> |
| 27 | If the color attachments are multisampled, non-multisampled resolve attachments can be provided. |
| 28 | </member> |
| 29 | </members> |
| 30 | <constants> |
| 31 | <constant name="ATTACHMENT_UNUSED" value="-1"> |
| 32 | Attachment is unused. |
| 33 | </constant> |
| 34 | </constants> |
| 35 | </class> |