Table of Contents

Class GraphRenderTexture

Namespace
Pinwheel.Vista.Graph
Assembly
Pinwheel.Vista.Runtime.dll

Wraps a UnityEngine.RenderTexture so the graph runtime can track it by identifier.

public class GraphRenderTexture : IDisposable
Inheritance
GraphRenderTexture
Implements
Inherited Members

Remarks

Vista uses this wrapper for the same reason it uses GraphBuffer: the runtime needs metadata such as a pool identifier in addition to the raw Unity object. The wrapped texture is what nodes and population systems actually read and write.

Constructors

GraphRenderTexture(int, int, RenderTextureFormat)

Creates a linear render texture wrapper with the requested size and format.

Properties

identifier

Pool or input identifier associated with this render texture.

renderTexture

Underlying render texture used by graph execution and downstream terrain-population code.

Methods

Dispose()

Releases and destroys the underlying render texture.

ToString()

Returns the identifier currently assigned to this wrapper.

Operators

implicit operator RenderTexture(GraphRenderTexture)

Returns the wrapped Unity render texture.

implicit operator GraphRenderTexture(RenderTexture)

Wraps an existing Unity render texture in a graph render-texture wrapper.