Ejemplo n.º 1
0
        public override void Render(RenderPipeline pipeline)
        {
            pipeline.InputAssembler.ClearDesiredState();

            Geometry.Apply(pipeline);
            pipeline.ParameterManager.ApplyCollection(RenderParameter);
            pipeline.ApplyShaderResources();
            if (Geometry.NumIndices > 0)
            {
                pipeline.DrawIndexed(Geometry.NumIndices, 0, 0);
            }
            else
            {
                pipeline.Draw(Geometry.VertexCount, 0);
            }
        }