Skip to content

IRenderResourceCache.RentScratchSurface method (1 of 2)

Takes an exact or bounded larger scratch surface compatible with key, or null when the pool holds none. The caller owns the allocation until it is handed back via ReturnScratchSurface; the previous content is undefined.

public IRenderSurface? RentScratchSurface(ScratchSurfaceKey key)

IRenderResourceCache.RentScratchSurface method (2 of 2)

Section titled “IRenderResourceCache.RentScratchSurface method (2 of 2)”

Rents a scratch surface, optionally rejecting larger compatible allocations.

public IRenderSurface? RentScratchSurface(ScratchSurfaceKey key, bool exactSizeOnly)