iOS: Default-initialize mtkView drawable size
This commit is contained in:
@@ -69,6 +69,7 @@ struct ContentView: UIViewRepresentable {
|
||||
}
|
||||
|
||||
mtkView.framebufferOnly = false
|
||||
mtkView.drawableSize = mtkView.frame.size
|
||||
|
||||
mtkView.onResize = { newDrawableSize in
|
||||
let newWidth = UInt32(newDrawableSize.width)
|
||||
|
||||
Reference in New Issue
Block a user