RDFramebufferPass
继承: RefCounted
< Object
Framebuffer pass attachment description (used by RenderingDevice
).
描述
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
.
属性
PackedInt32Array | color_attachments |
int | depth_attachment |
PackedInt32Array | input_attachments |
PackedInt32Array | preserve_attachments |
PackedInt32Array | resolve_attachments |
常量
ATTACHMENT_UNUSED = -1
Attachment is unused.
属性说明
PackedInt32Array
color_attachments = PackedInt32Array()
void
set_color_attachments ( value:PackedInt32Array
)PackedInt32Array
get_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 is copied and any changes to it will not update the original property value. See PackedInt32Array
for more details.
int
depth_attachment = -1
Depth attachment. ATTACHMENT_UNUSED should be used if no depth buffer is required for this pass.
PackedInt32Array
input_attachments = PackedInt32Array()
void
set_input_attachments ( value:PackedInt32Array
)PackedInt32Array
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.
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()
void
set_preserve_attachments ( value:PackedInt32Array
)PackedInt32Array
get_preserve_attachments ( )
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()
void
set_resolve_attachments ( value:PackedInt32Array
)PackedInt32Array
get_resolve_attachments ( )
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.
本方法通常需要用户覆盖才能生效。
本方法无副作用,不会修改该实例的任何成员变量。
本方法除了能接受在此处描述的参数外,还能够继续接受任意数量的参数。
本方法用于构造某个类型。
调用本方法无需实例,可直接使用类名进行调用。
本方法描述的是使用本类型作为左操作数的有效运算符。
这个值是由下列位标志构成位掩码的整数。
无返回值。