Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Value of type 'MTIRenderPipelineKernel' has no member 'apply' #369

Open
gmehedi opened this issue Jul 29, 2023 · 1 comment
Open

Value of type 'MTIRenderPipelineKernel' has no member 'apply' #369

gmehedi opened this issue Jul 29, 2023 · 1 comment

Comments

@gmehedi
Copy link

gmehedi commented Jul 29, 2023

import MetalPetal successful but it shows Value of type 'MTIRenderPipelineKernel' has no member 'apply'

@lsamaria
Copy link

lsamaria commented Dec 11, 2023

If you installed using Cocoa Pods, to fix this issue, add this to your Podfile:

pod 'MetalPetal/Swift'

The updated code is:

kernel.apply(to: images, parameters: params, outputDescriptors: outputDescriptors).first

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants