Hey @warrenm, I was playing around with MPS from your tutorial http://metalbyexample.com/metal-performance-shaders-in-swift/ … now I want to try and chain some filters, Sobel and Resize for example but I'm not sure where to start. Any tips?
Sorry if this is obtuse; I really should write a new article about all of this 
-
-
Ah I didn't even know sobel is only applied to 1:1 aspect images, I'm using it on something 320 x 240. But yes that's exactly what I'm trying to do. So the thing to do is have one intermediate texture of the same size as my drawable?
-
So I can encode the resize with the image as source and intermediate texture as destination, and the sobel filter with the intermediate as source and drawable as destination. Is that correct?
-
Bingo, yes. Just make sure the drawable is coming from a layer/view whose framebufferOnly property is set to false.
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.