private static void DoRenderLoop_Internal(IRenderPipelineAsset pipe, Camera[] cameras, IntPtr loopPtr) { RenderPipelineManager.PrepareRenderPipeline(pipe); if (RenderPipelineManager.currentPipeline != null) { ScriptableRenderContext renderContext = new ScriptableRenderContext(loopPtr); RenderPipelineManager.currentPipeline.Render(renderContext, cameras); } }
private static bool DoRenderLoop_Internal(IRenderPipelineAsset pipe, Camera[] cameras, IntPtr loopPtr) { bool result; if (!RenderPipelineManager.PrepareRenderPipeline(pipe)) { result = false; } else { ScriptableRenderContext renderContext = default(ScriptableRenderContext); renderContext.Initialize(loopPtr); RenderPipelineManager.currentPipeline.Render(renderContext, cameras); result = true; } return(result); }