Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for newer versions of swift #7

Closed
kerimcharfi opened this issue Jun 12, 2023 · 2 comments
Closed

Support for newer versions of swift #7

kerimcharfi opened this issue Jun 12, 2023 · 2 comments

Comments

@kerimcharfi
Copy link

kerimcharfi commented Jun 12, 2023

HI!
looks like a cool project! However I've got some problems getting it up and running.

Im currently facing a lot of errors:

using '!' is not allowed here; perhaps '?' was intended?
public typealias CreateRenderPipelineAsyncCallback = (CreatePipelineAsyncStatus, RenderPipeline, String, UnsafeMutableRawPointer!) -> ()

Which was introduced years ago to swift. What version of swift does work?
Is there a plan to support newer versions?

I somewhat hacked it to compile by changing the code gen, however only DemoInfo runs. The other fail with:

Using adapter: AMD Radeon RX Vega (RADV VEGA10)
Illegal instruction (core dumped
@henrybetts
Copy link
Owner

Looks like there was a recent change to the format of dawn.json which probably explains the build errors. Not entirely sure why they've made that change, but I'll probably need to have a look at the code generator to accommodate it.

As for the second issue, I'm not entirely sure. Have you tried running dawn's samples (CHelloTriangle etc.)? If they work then at least we'll know that it's a problem in the swift domain.

@henrybetts
Copy link
Owner

The issues with the code generation should be fixed with 44f87e7.

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

No branches or pull requests

2 participants