/// <summary> /// Set default render target to specify context. /// </summary> /// <param name="context"></param> /// <param name="clear"></param> /// <returns>Set successful?</returns> public bool SetDefaultRenderTargets(DeviceContext context, bool clear = true) { if (!IsInitialized) { return(false); } renderBuffer.SetDefaultRenderTargets(context); if (clear) { renderBuffer.ClearRenderTarget(context, ClearColor); } return(true); }
public void SetRenderTargets(DX11RenderBufferProxyBase buffer) { buffer.SetDefaultRenderTargets(this); }
public void SetRenderTargets(DX11RenderBufferProxyBase buffer) { buffer.SetDefaultRenderTargets(deviceContext); }