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); } }