private void ProcessRenderCommand(IRenderCommand command, IGraphicsContext context) { context.Device.SetBlendState(command.BlendState); context.Device.SetDepthStencilState(command.DepthStencilState); context.Device.SetRasterizerState(command.RasterizerState); command.SetGeometry(context); command.SetResources(context); command.SetConstants(context); command.Render(context); }