Exemple #1
0
 public RenderStageVisitor(
     IGpuSurfaceManager surfaceManager,
     ICameraManager cameraManager,
     IDrawStageRenderer drawStageRenderer,
     IColourEffectsStageRenderer colourEffectStageRenderer,
     IBloomStageRenderer bloomEffectStageRenderer,
     IBlurStageRenderer blur2DEffectStageRenderer,
     IBlur1DStageRenderer blur1DEffectStageRenderer,
     IStyleEffectsStageRenderer styleEffectRenderer,
     IMeshRenderStageRenderer meshRenderer,
     IDistortionStageRenderer distortionEffectStageRenderer,
     IMixStageRenderer mixRenderer,
     ICustomShaderStageRenderer customShaderRenderer,
     ICustomVeldridStageRenderer customVeldridRenderer,
     ISurfaceCopyStageRenderer surfaceCopyStageRenderer)
 {
     _surfaceManager            = surfaceManager;
     _cameraManager             = cameraManager;
     _drawStageRenderer         = drawStageRenderer;
     _colourEffectStageRenderer = colourEffectStageRenderer;
     _bloomEffectStageRenderer  = bloomEffectStageRenderer;
     _blur1DEffectStageRenderer = blur1DEffectStageRenderer;
     _blur2DEffectStageRenderer = blur2DEffectStageRenderer;
     _styleEffectRenderer       = styleEffectRenderer;
     _meshRenderer = meshRenderer;
     _distortionEffectStageRenderer = distortionEffectStageRenderer;
     _mixRenderer              = mixRenderer;
     _customShaderRenderer     = customShaderRenderer;
     _customVeldridRenderer    = customVeldridRenderer;
     _surfaceCopyStageRenderer = surfaceCopyStageRenderer;
 }
Exemple #2
0
        public GraphicsResourceReinitialiser(
            IGraphics graphics,
            ICameraManager cameraManager,
            IPipelineFactory pipelineFactory,
            IRenderStageManager renderStageManager,
            IViewportManager viewportManager,
            IFullNdcSpaceQuadVertexBuffer ndcSpaceQuadVertexBuffer,
            IBloomResultMixingRenderer bloomResultMixingRenderer,
            IBloomSamplingRenderer bloomSamplingRender,
            IBlurResultMixingRenderer blurResultMixingRenderer,
            IColourEffectsStageRenderer colourEffectStageRenderer,
            ICopyStageRenderer copyStageRenderer,
            IDistortionGraidentShiftRenderer distortionGradientShiftRenderer,
            IDistortionHeightRenderer distortionHeightRenderer,
            IDistortionRenderer distortionRenderer,
            IDownSamplingRenderer downSamplingRenderer,
            IDrawStageRenderer drawStageRenderer,
            IMeshRenderStageRenderer meshStageRenderer,
            IMixStageRenderer mixStageRenderer,
            ISinglePassGaussianBlurRenderer singlePassGaussianBlurRenderer,
            IStyleEffectsStageRenderer styleEffectStageRenderer,
            ISurfaceCopyStageRenderer surfaceCopyStageRenderer
            )
        {
            _graphics           = graphics;
            _cameraManager      = cameraManager;
            _pipelineFactory    = pipelineFactory;
            _renderStageManager = renderStageManager;
            _viewportManager    = viewportManager;

            _ndcSpaceQuadVertexBuffer = ndcSpaceQuadVertexBuffer;

            _bloomResultMixingRenderer       = bloomResultMixingRenderer;
            _bloomSamplingRender             = bloomSamplingRender;
            _blurResultMixingRenderer        = blurResultMixingRenderer;
            _colourEffectStageRenderer       = colourEffectStageRenderer;
            _copyStageRenderer               = copyStageRenderer;
            _distortionGradientShiftRenderer = distortionGradientShiftRenderer;
            _distortionHeightRenderer        = distortionHeightRenderer;
            _distortionRenderer              = distortionRenderer;
            _downSamplingRenderer            = downSamplingRenderer;
            _drawStageRenderer               = drawStageRenderer;
            _meshStageRenderer               = meshStageRenderer;
            _mixStageRenderer = mixStageRenderer;
            _singlePassGaussianBlurRenderer = singlePassGaussianBlurRenderer;
            _styleEffectStageRenderer       = styleEffectStageRenderer;
            _surfaceCopyStageRenderer       = surfaceCopyStageRenderer;
        }