Example #1
0
        public RenderPipeline(GraphicsDevice graphicsDevice)
        {
            _renderList = new RenderList();

            _depthStencilBufferCache = AddDisposable(new DepthStencilBufferCache(graphicsDevice));

            _globalConstantBufferShared  = AddDisposable(new ConstantBuffer <GlobalConstantsShared>(graphicsDevice));
            _globalConstantBufferVS      = AddDisposable(new ConstantBuffer <GlobalConstantsVS>(graphicsDevice));
            _renderItemConstantsBufferVS = AddDisposable(new ConstantBuffer <RenderItemConstantsVS>(graphicsDevice));
            _globalConstantBufferPS      = AddDisposable(new ConstantBuffer <GlobalConstantsPS>(graphicsDevice));
            _globalLightingTerrainBuffer = AddDisposable(new ConstantBuffer <LightingConstants>(graphicsDevice));
            _globalLightingObjectBuffer  = AddDisposable(new ConstantBuffer <LightingConstants>(graphicsDevice));
        }
Example #2
0
 public RenderPipeline(GraphicsDevice graphicsDevice)
 {
     _depthStencilBufferCache = AddDisposable(new DepthStencilBufferCache(graphicsDevice));
 }