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

Add workaround for gfx-rs/wgpu#5289 #372

Merged

Conversation

rajveermalviya
Copy link
Collaborator

Updates #337

Add a temporary workaround for unsupported request_adapter call with a specific backend type. Instead encourage the use of InstanceExtras extension for InstanceDescriptor for that usecase.

Upstream issue:

Example usage:

WGPUInstanceExtras instanceExtras = { 0 };
instanceExtras.chain.sType = (WGPUSType)WGPUSType_InstanceExtras;
instanceExtras.backends = WGPUInstanceBackend_DX12;

WGPUInstanceDescriptor instanceDescriptor = { 0 };
instanceDescriptor.nextInChain = &instanceExtras.chain;

WGPUInstance instance = wgpuCreateInstance(&instanceDescriptor);

@rajveermalviya rajveermalviya merged commit bcdca75 into gfx-rs:trunk Feb 26, 2024
16 checks passed
@rajveermalviya rajveermalviya deleted the workaround-adapter-backend branch February 26, 2024 15:07
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