The source and mask arrays must be value-accessible and the result array must be accessible (see section 4.6).