Thank you very much! This helped me in achieving to get the TouchControllers to render :)
To get this to work, the following steps helped me:
Use init(mtkView:)
Set touchController.drawableSize = yourMTKView.drawableSize
In mtkView(_:drawableSizeWillChange:) do this:
func mtkView(_ view: MTKView, drawableSizeWillChange size: CGSize) {
touchController.drawableSize = size
}
In func draw(in view: MTKView) create a second render pass descriptor using the previous descriptors colorAttachments, depthAttachment and stencilAttachment.
Kind Regards
Patrick Müller
Topic:
Graphics & Games
SubTopic:
SpriteKit