Modified command pipeline processing

Next middleware gets commandbuffer of previous middleware