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