@warrenm any example on how to attach video to texture in Metal? Could not find one in your book :)
Poll an AVPlayerItemVideoOutput for a CVPixelBufferRef, which you then feed to a CVMetalTextureCache to get back an MTLTexture.
-
-
Basically this: https://developer.apple.com/library/content/samplecode/AVBasicVideoOutput/Listings/AVBasicVideoOutput_APLViewController_m.html#//apple_ref/doc/uid/DTS40013109-AVBasicVideoOutput_APLViewController_m-DontLinkElementID_8 … with the texture handling and shaders from this: https://github.com/McZonk/MetalCameraSample …
-
thanks! Will give it a try
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.