Ejemplo n.º 1
0
        public static RenderPassDesc CreateDefault(int renderTargetCount)
        {
            var result = new RenderPassDesc()
            {
                renderTargetDescs = new RenderPassRenderTargetDesc[renderTargetCount],
                depthStencilDesc  = RenderPassDepthStencilDesc.CreateDefault(true)
            };

            for (int i = 0; i != renderTargetCount; ++i)
            {
                result.renderTargetDescs[i] = RenderPassRenderTargetDesc.CreateDefault(Color4F.black);
            }
            return(result);
        }
Ejemplo n.º 2
0
        public static RenderPassDesc CreateDefault(Color4F clearColorValue, int renderTargetCount, bool clearDepthStencil)
        {
            var result = new RenderPassDesc()
            {
                renderTargetDescs = new RenderPassRenderTargetDesc[renderTargetCount],
                depthStencilDesc  = RenderPassDepthStencilDesc.CreateDefault(clearDepthStencil)
            };

            for (int i = 0; i != renderTargetCount; ++i)
            {
                result.renderTargetDescs[i] = RenderPassRenderTargetDesc.CreateDefault(clearColorValue);
            }
            return(result);
        }