Пример #1
0
        public override RenderPassBase CreateRenderPass(RenderPassDesc desc, DepthStencilBase depthStencil)
        {
            var abstraction = new RenderPass(deviceD3D12);

            if (!abstraction.Init(desc, this, (DepthStencil)depthStencil))
            {
                abstraction.Dispose();
                throw new Exception("Failed to create RenderPass");
            }
            return(abstraction);
        }
Пример #2
0
        public override RenderPassBase CreateRenderPass(RenderPassDesc desc, Texture2DBase[] renderTextures, DepthStencilBase depthStencil)
        {
            var abstraction = new RenderPass(this);

            if (!abstraction.Init(desc, (RenderTexture2D[])renderTextures, (DepthStencil)depthStencil))
            {
                abstraction.Dispose();
                throw new Exception("Failed to create RenderState");
            }
            return(abstraction);
        }