Skip to content

Conversation

@coolcatcoder
Copy link

@coolcatcoder coolcatcoder commented Oct 15, 2024

I tried to update this to bevy 0.14, but I know nothing about bevy, vulkano, and winit, so I failed miserably. It at least compiles, and some examples even work (unless you move the mouse...)! Hopefully you'll be able to ctrl F "todo" and fix everything that I could not!

(Also I added a .cargo folder, and some stuff at the top of cargo.toml so that I could compile quickly.)

@coolcatcoder
Copy link
Author

coolcatcoder commented Oct 16, 2024

I don't know if this is possible. Winit 0.28 uses raw-window-handle 0.5, whereas bevy uses raw-window-handle 0.6. This makes RawHandleWrapper impossible to construct, at least as far as I can tell. Perhaps this pull request should use the master branch of vulkano (Uses raw-window-handle 0.6.), until they release the next version? (Shouldn't be too difficult, I'll see if I can work it out!)

@hakolao
Copy link
Owner

hakolao commented Oct 16, 2024

This should probably be updated to winit-0.30 (at least 0.29 should be easy). Also, it should be possible to set the rwh version using winit features.

@coolcatcoder
Copy link
Author

I think I've come up with a better solution! I think. We can just listen to the window create and close events, and sync vulkano renderers with them. This makes the code a lot simpler. I don't know if this works though, as whenever I try run the game of life example, my whole computer freezes, and I can't work out why.

@coolcatcoder
Copy link
Author

Somehow the game of life example started working! I have no idea why!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants