Interface IOffscreenRenderer
Provides helpers for rendering into offscreen targets without exposing the full graphics surface.
public interface IOffscreenRenderer
Methods
RenderToTarget(int, int, Action<IRenderEncoderScope>, RenderPassTag, string, Color?)
Draws what record records into a new render target width by height pixels, and returns the target.
IRenderTarget RenderToTarget(int width, int height, Action<IRenderEncoderScope> record, RenderPassTag passTag = RenderPassTag.UI, string passName = null, Color? clearColor = null)
Parameters
widthintheightintrecordAction<IRenderEncoderScope>passTagRenderPassTagpassNamestringclearColorColor?The colour the target is cleared to first. Transparent when null.