added API to select multisampling types