Class MorphCompositeAtlas
Namespace: ValveResourceFormat.Renderer
Assembly: Renderer.dll
Morph composite atlas combining all scene meshes' composited result.
public sealed class MorphCompositeAtlas : IDisposableInheritance
Implements
Constructors
MorphCompositeAtlas(RendererContext)
Creates an empty atlas. Nothing is allocated on the GPU until a composite renders.
public MorphCompositeAtlas(RendererContext renderContext)Parameters
renderContext RendererContext
Properties
LayoutVersion
Changes whenever a composite's rect is placed or moved, so the draw entries that carry rects can follow.
public int LayoutVersion { get; }Property Value
Texture
The atlas texture, created with the first rect.
public RenderTexture? Texture { get; }Property Value
Methods
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()Queue(MorphComposite)
Queues a composite whose weights changed, to be drawn by the next .
public void Queue(MorphComposite composite)Parameters
composite MorphComposite
Release(MorphComposite)
Gives up a composite's rect for good. The shelves cannot reuse the hole, but the next rect that does not fit repacks only the live ones, so the space comes back before the atlas grows.
public void Release(MorphComposite composite)Parameters
composite MorphComposite
Render()
Places the queued composites that have no rect yet, then redraws every queued one. Runs after every scene has updated, since placing one scene's composite can move the rects of all of them.
public void Render()
