RDFramebufferPass
Framebuffer pass attachment description (used by RenderingDevice
).
class RDFramebufferPass
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
.
Superclasses
class RefCounted
Base class for reference-counted objects.
Citizens in SwiftGodot
Conformances
protocol CustomStringConvertible
A type with a customized textual representation.
protocol Equatable
A type that can be compared for value equality.
protocol Hashable
A type that can be hashed into a
Hasher
to produce an integer hash value.protocol Identifiable<ID>
A class of types whose instances hold the value of an entity with stable identity.
protocol VariantRepresentable
Types that conform to VariantRepresentable can be stored directly in
Variant
with no conversion. These include all of the Variant types from Godot (for exampleGString
,Rect
,Plane
), Godot objects (those that subclass SwiftGodot.Object) as well as the built-in Swift types UInt8, Int64 and Double.protocol VariantStorable
Types that conform to VariantStorable can be stored in a Variant and can be extracted back out of a Variant.
Type members
static let attachmentUnused: Int
Attachment is unused.
class var godotClassName: StringName
Instance members
var colorAttachments: PackedInt32Array
Color attachments in order starting from 0. If this attachment is not used by the shader, pass ATTACHMENT_UNUSED to skip.
var depthAttachment: Int32
Depth attachment. ATTACHMENT_UNUSED should be used if no depth buffer is required for this pass.
var inputAttachments: PackedInt32Array
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.var preserveAttachments: PackedInt32Array
Attachments to preserve in this pass (otherwise they are erased).
var resolveAttachments: PackedInt32Array
If the color attachments are multisampled, non-multisampled resolve attachments can be provided.