attackgoat / screen-13

Screen 13 is an easy-to-use Vulkan rendering engine in the spirit of QBasic.
Apache License 2.0
251 stars 13 forks source link

Screen 13 doesn't work with MoltenVK #61

Closed PENGUINLIONG closed 1 year ago

PENGUINLIONG commented 1 year ago

It seems the Screen 13 no longer works with MoltenVK on macOS but I found MoltenVK-related code around so I wonder if it's in progress or the things just don't work with Apple anymore?

The current implementation basically fails on imageless framebuffer:

https://github.com/attackgoat/screen-13/blob/2c93683ba748340e78169412987579bf393484a0/src/driver/device.rs#L252-L256

attackgoat commented 1 year ago

There was a point where Screen 13 worked with MoltenVK, but the code has since changed to require imageless framebuffer and I haven't gotten around to fixing it yet.

I do have a Mac I can borrow, and I think I will try to figure that out. MoltenVK does support the required features in the latest version, but not the one currently delivered with ash-molten.

PENGUINLIONG commented 1 year ago

Oof. That's totally unexpected.

attackgoat commented 1 year ago

As an update - I followed the steps given by ash-molten to upgrade MoltenVK; I was able to get a few examples to run properly but some of them didn't open a window or crashed. The Mac is an M2 mini, which is totally new to me and I'll have to investigate more what can be done to get everything working.

I do believe everything should be fixable - this is why I have always kept the Vulkan version provided by Screen 13 locked at 1.2, knowing MoltenVK doesn't support 1.3.