Method CreateRenderTarget
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
descDataPool.RtDescriptorThe size and format required by the caller.
namestringThe identifier used to retrieve this texture later, usually derived from a node slot.
clearContentbooltrue 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
descDataPool.RtDescriptorslotRefSlotRefclearContentbool