Exemple #1
0
        public void Render(RenderContext context, IPipeline pipeline, IViewport viewport, CommandList cl)
        {
            if (UpdateRequired())
            {
                Update();
            }

            _buffer.Bind(cl, 0);
            cl.DrawIndexed(_indexCount, 1, 0, 0, 0);
        }
Exemple #2
0
 public void Render(RenderContext context, IPipeline pipeline, IViewport viewport, CommandList cl)
 {
     cl.SetGraphicsResourceSet(1, _set);
     _buffer.Bind(cl, 0);
     cl.DrawIndexed(6, 1, 0, 0, 0);
 }