Collection of tags associated with this object
Static
Readonly
FrameConstant identifier for standard framebuffer type
Static
Readonly
InvalidInvalid object UID constant
Static
Readonly
ResolveConstant identifier for resolve framebuffer type
Static
Readonly
ResolveConstant identifier for secondary resolve framebuffer type
Static
currentCurrent maximum object count for UID generation
Gets a read-only array of all expressions currently registered in this frame.
Array of Expression objects in the order they were added
Gets the unique object identifier
The object's UID
Gets the unique name of this object
The unique name string
Internal
Copies tag data from another RnObject instance to this object
The source RnObject to copy tags from
Adds a rendering expression to this frame with optional input dependencies and output configurations.
This method registers an expression within the frame and establishes its relationships with input render passes and output framebuffers. The expression will be executed in the order it was added to the frame.
The rendering expression to add to this frame
Configuration object for input dependencies and outputs
Optional
inputArray of render passes that this expression depends on
Optional
outputs?: { Array of output configurations specifying which render passes should render to which framebuffers
Retrieves a color attachment render target texture from an input render pass of the specified expression.
This method creates a promise-based query system that allows expressions to access color attachment textures from their input render passes. The actual texture retrieval is deferred until the resolve() method is called, enabling proper dependency resolution.
The expression from which to retrieve the color attachment
Configuration object specifying the render pass and attachment details
Index of the color attachment to retrieve (default: 0)
Type of framebuffer to query (default: 'FrameBuffer')
Identifier for the target render pass (by index, name, or instance)
Promise that resolves to the requested RenderTargetTexture
Checks if this object has all the specified tags with exactly matching values
Object containing tag names as keys and expected values
True if all specified tags exist with matching values, false otherwise
Checks if the object's combined tag string contains all the provided search strings. This allows for flexible searching within tag names and values.
Array of strings that must all be present in the combined tag string
True if all strings are found in the combined tag string, false otherwise
Resolves all pending expression queries and establishes texture dependencies.
This method processes all queued color attachment queries created by getColorAttachmentFromInputOf() calls. It matches expressions with their corresponding render passes and retrieves the requested color attachment textures, fulfilling the associated promises.
This method should be called after all expressions have been added and all color attachment queries have been registered, typically before beginning the actual rendering process.
Sets the viewport for all expressions in this frame.
This method propagates the viewport settings to all registered expressions, ensuring consistent rendering dimensions across the entire frame.
4D vector defining the viewport (x, y, width, height)
Attempts to set a tag on this object. If the tag already exists, it will be replaced.
The tag object containing the name and value to set
True if the tag was successfully set, false if the tag name contains invalid characters
Attempts to set a unique name for this object
The desired unique name
If true, appends UID to make name unique when conflicts occur; if false, fails on conflict
True if the name was successfully set, false if there was a conflict and toAddNameIfConflict was false
Static
_resetStatic
getStatic
getStatic
searchSearches for the first object that has a specific tag with the given value
The tag name to search for
The tag value to match
WeakRef to the first matching object, or undefined if not found
Frame manages expressions and their input/output dependencies in the rendering pipeline.
The Frame class serves as a container for multiple rendering expressions and handles the complex relationships between render passes, including input dependencies and output framebuffer assignments. It provides mechanisms for querying color attachments from input render passes and resolving dependencies between expressions.
Example