You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So it seems the culprit is a recursive call to [MTKView draw]. Indeed, commenting out the view.draw call in the delegate and replacing it with a call to window.view.draw() in the main loop makes the crash stop happening. However, there doesn't appear to be any drawing happening, as the window's view is blank, and not showing a red colour as to be expected from the example code.
I have also tried updating the cocoa crate to latest (0.4.4) but this hasn't made a difference.
The text was updated successfully, but these errors were encountered:
Hi, really excited to see this package. I'm very keen to use Metal from rust.
I'm trying to run the
metal_triangle
example but am getting a stack overflow.Steps to reproduce:
$ cargo build
$ cargo run --example metal_triangle
Portion of the stack trace is below:
So it seems the culprit is a recursive call to
[MTKView draw]
. Indeed, commenting out theview.draw
call in the delegate and replacing it with a call towindow.view.draw()
in the main loop makes the crash stop happening. However, there doesn't appear to be any drawing happening, as the window's view is blank, and not showing a red colour as to be expected from the example code.I have also tried updating the
cocoa
crate to latest (0.4.4) but this hasn't made a difference.The text was updated successfully, but these errors were encountered: