RDFramebufferPass

继承: RefCounted < Object

帧缓冲区阶段的附件描述(由 RenderingDevice 使用)。

描述

该类包含帧缓冲区通道的附件描述列表。每个点都有一个指向先前提供的纹理附件列表的索引。

多通道帧缓冲区,可以优化移动设备中的某些配置;在桌面设备上,它们几乎没有优势。

这个对象由 RenderingDevice 使用。

属性

PackedInt32Array

color_attachments

PackedInt32Array()

int

depth_attachment

-1

PackedInt32Array

input_attachments

PackedInt32Array()

PackedInt32Array

preserve_attachments

PackedInt32Array()

PackedInt32Array

resolve_attachments

PackedInt32Array()


常量

ATTACHMENT_UNUSED = -1 🔗

附件未使用。


属性说明

PackedInt32Array color_attachments = PackedInt32Array() 🔗

从 0 开始按顺序为附件着色。如果该附件未被着色器使用,则传递 ATTACHMENT_UNUSED 以跳过。

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 🔗

  • void set_depth_attachment(value: int)

  • int get_depth_attachment()

深度附件。如果该通道不需要深度缓冲区,则应使用 ATTACHMENT_UNUSED。


PackedInt32Array input_attachments = PackedInt32Array() 🔗

用于多通道帧缓冲区(不止一个渲染通道)。将一个附件转换为一个输入。确保还在 RDUniform 中为 uniform 集正确提供它。

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

要在该阶段中保留的附件(否则它们将被删除)。

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

如果颜色附件是多重采样的,则可以提供非多重采样的解析附件。

Note: The returned array is copied and any changes to it will not update the original property value. See PackedInt32Array for more details.