Exemple #1
0
        public static RenderPassRenderTargetDesc CreateDefault(Color4F clearColorValue)
        {
            var result = new RenderPassRenderTargetDesc()
            {
                clearColor      = true,
                clearColorValue = clearColorValue
            };

            return(result);
        }
Exemple #2
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);
        }
Exemple #3
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);
        }