Post

Replies

Boosts

Views

Activity

Reply to Minimal working example for TCTouchController + SpriteKit SKRenderer + Metal?
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
16h
Reply to Minimal working example for TCTouchController + SpriteKit SKRenderer + Metal?
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
Replies
Boosts
Views
Activity
16h