Add multisampling functionality