Table of Contents

Method CreateRenderTarget

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

CreateRenderTarget(RtDescriptor, string, bool)

Returns a render texture matching the requested descriptor and binds it to a pool identifier.

public GraphRenderTexture CreateRenderTarget(DataPool.RtDescriptor desc, string name, bool clearContent = true)

Parameters

desc DataPool.RtDescriptor

The size and format required by the caller.

name string

The identifier used to retrieve this texture later, usually derived from a node slot.

clearContent bool

true to zero the texture before handing it to the caller; otherwise the previous contents are left intact.

Returns

GraphRenderTexture

An existing unreferenced texture reused from the pool when possible; otherwise a newly allocated GraphRenderTexture.

CreateRenderTarget(RtDescriptor, SlotRef, bool)

Returns a render texture and binds it to the identifier derived from a slot reference.

public GraphRenderTexture CreateRenderTarget(DataPool.RtDescriptor desc, SlotRef slotRef, bool clearContent = true)

Parameters

desc DataPool.RtDescriptor
slotRef SlotRef
clearContent bool

Returns

GraphRenderTexture