protected override void DrawCore(RenderDrawContext context)
            {
                try
                {
                    context.PushRenderTargets();
                    minMax.SetInput(context.CommandList.DepthStencilBuffer);
                    ((RendererBase)minMax).Draw(context);

                    IsResultAvailable = minMax.IsResultAvailable;
                    if (IsResultAvailable)
                    {
                        DepthMinMax = minMax.Result;
                    }
                }
                finally
                {
                    context.PopRenderTargets();
                }
            }
            protected override void DrawCore(RenderContext context)
            {
                try
                {
                    context.GraphicsDevice.PushState();
                    minMax.SetInput(context.GraphicsDevice.DepthStencilBuffer);
                    minMax.Draw(context);

                    IsResultAvailable = minMax.IsResultAvailable;
                    if (IsResultAvailable)
                    {
                        DepthMinMax = minMax.Result;
                    }
                }
                finally
                {
                    context.GraphicsDevice.PopState();
                }
            }