1 Reply
      Latest reply on Jun 17, 2019 3:48 PM by _mc
      _mc Level 1 Level 1 (0 points)

        validateComputeFunctionArguments:817: failed assertion `Compute Function(mainMetalEntryPoint): Non-writeable texture format MTLPixelFormatBGRA8Unorm_sRGB is being bound at index 0 to a shader argument with write access enabled.'


                  CIImage *ciImage = [[CIImage alloc] initWithImage: img];


                    VNImageRequestHandler* handler = [[VNImageRequestHandler alloc]





                    VNDetectFaceRectanglesRequest* request = [[VNDetectFaceRectanglesRequest alloc] initWithCompletionHandler:^(VNRequest * _Nonnull request, NSError * _Nullable error) {





                    NSError *error;


                    //This is throwing the error

                    [handler performRequests:@[request] error:&error];


        This works fine in 12