complete basic fragment support
add clear function in pipeline