public void SetRenderTarget(IPlatformRenderTexture2D texture) { if (renderTarget != texture) { renderTarget = (PlatformRenderTexture2D)texture; renderTargetDirty = true; } }
public IPlatformRenderTexture2D GetPlatformTexture() { if (platformTexture == null) { platformTexture = PlatformRenderer.Context.CreateRenderTexture2D(Format, size.Width, size.Height, textureParams); } return(platformTexture); }
private void DisposeInternal() { MemoryUsed = 0; if (platformTexture != null) { var platformTextureCopy = platformTexture; Window.Current.InvokeOnRendering(() => { platformTextureCopy.Dispose(); }); platformTexture = null; } }