add inputSampler, branch input to renderPass
close #217