Replies: 1 comment 1 reply
-
As to the iced/examples/game_of_life/src/main.rs Lines 23 to 30 in a53fa91 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
TL;DR
I found a way to resolve
Error: GraphicsAdapterNotFound
bug on Raspberry Pi OS with Vulkan 1.1.Related issues
Description
Since #1160, iced on Raspberry Pi runs only on top of OpenGL with
"glow"
feature flag.Currently Raspberry Pi 4 is Vulkan 1.1 compliant. I think iced should work on Vulkan on Raspberry Pi 4.
Vulkan update: version 1.1 conformance for Raspberry Pi 4 - Raspberry Pi
Install Vulkan on Raspberry Pi 4 - Q-engineering
I installed Vulkan 1.1 on Raspberry Pi OS (32bit) following the above instructions, and then examples of wgpu work well.
glxinfo -B
outputBut, running iced example that depends on wgpu renderer (such as
svg
) fails with error messageError: GraphicsAdapterNotFound
.It should be expected to work correctly as good as wgpu example on Vulkan enabled platform, but it did not.
I wrote some code to find the bug and found that there is a problem in specifying a
limits
of wgpu::DeviceDescriptor.After changing the value of limits to
wgpu::Limits::downlevel_defaults()
shown in the patch above, thesvg
example worked good on Raspberry Pi 4.There are still some issues with Vulkan backend on Raspberry Pi 4:
WGPU_BACKEND=gl
env-var failsgame_of_life
)So, this is one way to support Vulkan 1.1 on a Raspberry Pi 4. But I don't have ideas to make better patch to source code.
Any ideas?
Beta Was this translation helpful? Give feedback.
All reactions