FramebufferCacheRD
Framebuffer cache manager for Rendering Device based renderers.
FramebufferCacheRD.swift:17class FramebufferCacheRD
Framebuffer cache manager for Rendering Device based renderers. Provides a way to create a framebuffer and reuse it in subsequent calls for as long as the used textures exists. Framebuffers will automatically be cleaned up when dependent objects are freed.
Superclasses
class Object
Base class for all other classes in the engine.
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 func getCacheMultipass(textures: VariantCollection<RID>, passes: ObjectCollection<RDFramebufferPass>, views: UInt32
) -> RID Creates, or obtains a cached, framebuffer.
textures
lists textures accessed.passes
defines the subpasses and texture allocation, if left empty a single pass is created and textures are allocated depending on their usage flags.views
defines the number of views used when rendering.class var godotClassName: StringName