How to use the "write" function in a CoreImage Metal shader

There is a write function documented in the CoreImage Metal shader reference here: https://developer.apple.com/metal/MetalCIKLReference6.pdf

But I'm not sure how to use it. I assumed one would be able to use it on the destination parameter i.e. dest.write(...) but I get the error, "no member named 'write' in 'coreimage::destination'"

How do I use this function?

Answered by billybobyourmom in 699005022

I just figured it out. You must declare the parameter as coreimage::group::destination dest

Accepted Answer

I just figured it out. You must declare the parameter as coreimage::group::destination dest

How to use the "write" function in a CoreImage Metal shader
 
 
Q