added two pass support and device filters to gfx library