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

allow creating wgpu::Instance from wgpu_core::Instance #2763

Merged
merged 1 commit into from
Jun 26, 2022

Conversation

i509VCB
Copy link
Contributor

@i509VCB i509VCB commented Jun 11, 2022

Description
When creating custom hal instances, you may want to do so for multiple backends. Since a wgpu_core::Instance may have multiple instance members constructed, that is probably the best spot to deal with multiple custom wgpu_hal backends.

I do this specifically in my wgpu fork to integrate with some Linux specific APIs and want to be able to use EGL and Vulkan adapters.

wgpu/src/lib.rs Outdated Show resolved Hide resolved
wgpu/src/backend/direct.rs Outdated Show resolved Hide resolved
@jimblandy jimblandy merged commit f041991 into gfx-rs:master Jun 26, 2022
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