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

tutorial1-window on OS X #62

Closed
guidorice opened this issue Jun 23, 2020 · 1 comment · Fixed by #68
Closed

tutorial1-window on OS X #62

guidorice opened this issue Jun 23, 2020 · 1 comment · Fixed by #68

Comments

@guidorice
Copy link
Contributor

guidorice commented Jun 23, 2020

If you're on MacOS, you can specify Vulkan (MoltenVK) as your desired backend instead of Metal by removing the wgpu = "0.5.0" and adding the following.

[dependencies.wgpu]
version = "0.5.0"
features = ["vulkan"]

I would also add something about what is the benefit or reason for adding features = ["vulkan"] .
My understanding is that without specifying vulkan, the pipeline on OS X is like:

wgpu-rs -> wgpu-core -> metal

adding features = ["vulkan"] then the pipeline on OS X is like this:

wgpu-rs -> wgpu-core -> vulkan -> moltenvk -> metal

But what would the tradoffs or pros/cons be of doing that? Confusing issues, there is actually an OS X SDK listed at https://vulkan.lunarg.com/sdk/home . I have a feeling there might be a lot of outdated information about Vulkan and OS X, on the web, but I am just learning. Let me know what you think about that, and I would be happy to submit a PR for this.

PS, also thanks so much for this awesome tutorial. Enjoying digging into it.

@guidorice
Copy link
Contributor Author

@sotrh thanks much- I saw the Q&A over in gfx-rs/wgpu-rs#421
I can create a PR for learn-wgpu using kvark's info.

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 a pull request may close this issue.

1 participant