RDFramebufferPass
繼承: RefCounted < Object
框架緩衝區階段的附件描述(由 RenderingDevice 使用)。
說明
該類包含框架緩衝區通道的附件描述列表。每個點都有一個指向先前提供的紋理附件列表的索引。
多通道框架緩衝區,可以優化移動裝置中的某些配置;在桌面裝置上,它們幾乎沒有優勢。
這個物件由 RenderingDevice 使用。
屬性
|
||
|
||
|
||
|
||
|
常數
ATTACHMENT_UNUSED = -1 🔗
附件未使用。
屬性說明
PackedInt32Array color_attachments = PackedInt32Array() 🔗
void set_color_attachments(value: PackedInt32Array)
PackedInt32Array get_color_attachments()
從 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.
深度附件。如果該通道不需要深度緩衝區,則應使用 ATTACHMENT_UNUSED。
PackedInt32Array input_attachments = PackedInt32Array() 🔗
void set_input_attachments(value: PackedInt32Array)
PackedInt32Array get_input_attachments()
用於多通道框架緩衝區(不止一個算繪通道)。將一個附件轉換為一個輸入。確保還在 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() 🔗
void set_preserve_attachments(value: PackedInt32Array)
PackedInt32Array get_preserve_attachments()
要在該階段中保留的附件(否則它們將被刪除)。
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()
如果顏色附件是多重取樣的,則可以提供非多重取樣的解析附件。
Note: The returned array is copied and any changes to it will not update the original property value. See PackedInt32Array for more details.