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.

@i509VCB i509VCB force-pushed the instance-from-core branch from 3bb1615 to d77719d Compare June 11, 2022 00:22
@jimblandy jimblandy requested a review from kvark June 15, 2022 00:00
wgpu/src/lib.rs Outdated Show resolved Hide resolved
wgpu/src/backend/direct.rs Outdated Show resolved Hide resolved
@i509VCB i509VCB force-pushed the instance-from-core branch from d77719d to 0b7e0da Compare June 26, 2022 20:35
@i509VCB i509VCB requested a review from jimblandy June 26, 2022 20:35
@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