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

How can I can use dx11 or dx12 backend? #207

Closed
cossonleo opened this issue Feb 25, 2020 · 3 comments
Closed

How can I can use dx11 or dx12 backend? #207

cossonleo opened this issue Feb 25, 2020 · 3 comments
Labels
improvement An internal improvement question Further information is requested
Milestone

Comments

@cossonleo
Copy link
Contributor

@hecrj Thanks for your work
It is vulkan backend when I run wgpu-rs's example describe.
Is Iced alaways use vulkan?
If not, how can I check the backend of iced.
If it is not default dx11 or dx12 on windows, How Can I switch to dx11 or dx12?

@hecrj
Copy link
Member

hecrj commented Feb 26, 2020

wgpu should choose the best option depending on the OS. If I remember correctly, it should choose DirectX 12 on Windows if available before Vulkan.

I've been meaning to add this information to the debug overlay. I will try to open a PR today!

@hecrj hecrj added the question Further information is requested label Feb 26, 2020
@hecrj hecrj added this to the 0.1.0 milestone Feb 26, 2020
@hecrj hecrj added the improvement An internal improvement label Feb 26, 2020
@cossonleo
Copy link
Contributor Author

cossonleo commented Feb 26, 2020

@hecrj When I assign Application's setting.antialiasing true, it use dx12 and example will run fine.
But default, wgpu will use PowerPreference default, and it will use vulkan backend on my win10 laptop, but win10's driver does not fully support vulkan. #172

@hecrj Thanks for your help.

@hecrj
Copy link
Member

hecrj commented Feb 26, 2020

Glad to help!

Just for the record, this is caused by wgpu choosing your integrated GPU by default. Once you enable anti-aliasing, the PowerPreference changes to HighPerformance and wgpu chooses your dedicated GPU instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improvement An internal improvement question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants