Method CreateTemporaryRT
CreateTemporaryRT(RtDescriptor, string, bool)
Creates or reuses a temporary render texture that is protected from immediate pool reuse.
public GraphRenderTexture CreateTemporaryRT(DataPool.RtDescriptor desc, string uniqueName, bool clearContent = true)
Parameters
descDataPool.RtDescriptorThe size and format required by the temporary texture.
uniqueNamestringA caller-defined identifier that should not collide with regular slot output names.
clearContentbooltrue to clear the texture to zero before use.
Returns
- GraphRenderTexture
A temporary texture whose reference count is initialized to
1.