Skip to content

ScratchSurfaceExtensions.ReleaseScratchSurface method

Hands a surface obtained from AcquireScratchSurface back for reuse. Disposes it when the device has no pool or the pool is over budget.

public static void ReleaseScratchSurface(this IRenderDevice device, IRenderSurface surface)