I have an (animated) UIView-Hierarchy and I want to periodically render the UIView content into a MTLTexture for further processing.
What I have tried, is to subclass my parent UIView and
override public class var layerClass: Swift.AnyClass {
return CAMetalLayer.self
}
but the texture from nextDrawable() is black and does not show the view content.
Any ideas how to get a MTLTexture containing the view content ?