Ejemplo n.º 1
0
                protected override void Render(IList <IBaseTexture> inputs)
                {
                    var texture = inputs.OfType <ITexture2D>().SingleOrDefault();

                    if (texture == null)
                    {
                        return;
                    }

                    if (texture.Format != TextureFormat.Unorm8 || OutputTarget.Format != TextureFormat.Unorm8)
                    {
                        throw new RenderScriptException("Input and output formats must be Unorm8");
                    }

                    m_DxvaHd.Render(texture, OutputTarget);
                }