RDFramebufferPass

Hereda: RefCounted < Object

Framebuffer pass attachment description (used by RenderingDevice).

Descripción

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.

Propiedades

PackedInt32Array

color_attachments

PackedInt32Array()

int

depth_attachment

-1

PackedInt32Array

input_attachments

PackedInt32Array()

PackedInt32Array

preserve_attachments

PackedInt32Array()

PackedInt32Array

resolve_attachments

PackedInt32Array()


Constantes

ATTACHMENT_UNUSED = -1 🔗

El adjunto no se utiliza.


Descripciones de Propiedades

PackedInt32Array color_attachments = PackedInt32Array() 🔗

Adjuntos de color en orden a partir de 0. Si este adjunto no es utilizado por el shader, pasa ATTACHMENT_UNUSED para omitir.

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

Adjunto de profundidad. ATTACHMENT_UNUSED debe ser usado si no se requiere ningún búfer de profundidad para este pase.


PackedInt32Array input_attachments = PackedInt32Array() 🔗

Utilizado para búferes de fotogramas multipase (más de un pase de renderizado). Convierte un adjunto en una entrada. Asegúrate de suministrarlo también correctamente en el RDUniform para el conjunto uniforme.

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

Adjuntos a preservar en este pase (de lo contrario, se borran).

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

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.