Added multisampling-related functions