Open gselzer opened 2 months ago
Can you try the cube.py
example from wgpu-py. That's a bit closer to the metal, and you could also try replacing this line
https://github.com/pygfx/wgpu-py/blob/b5e9f66e13fb83b8976e65ad7aea8fa35437bd3f/examples/cube.py#L30
with render_texture_format = wgpu.TextureFormat.bgra8unorm_srgb
.
@almarklein thanks for the reply!
Can you try the
cube.py
example from wgpu-py. That's a bit closer to the metal, and you could also try replacing this line https://github.com/pygfx/wgpu-py/blob/b5e9f66e13fb83b8976e65ad7aea8fa35437bd3f/examples/cube.py#L30 withrender_texture_format = wgpu.TextureFormat.bgra8unorm_srgb
.
Cube example raises a simliar panic as the one I reported above.
Using your suggested Texture Format raises a different, non-panic exception, encountered on the following line:
Available adapters on this system:
llvmpipe (LLVM 15.0.7, 256 bits) (CPU) via Vulkan
D3D12 (Intel(R) Iris(R) Xe Graphics) (IntegratedGPU) via OpenGL
Traceback (most recent call last):
File "/home/g/code/vispy/vispy/tmp.py", line 32, in <module>
present_context.configure(device=device, format=render_texture_format)
File "/home/g/miniforge3/envs/pymmcore-plus-sandbox/lib/python3.11/site-packages/wgpu/backends/wgpu_native/_api.py", line 461, in configure
raise ValueError(
ValueError: Given format 'bgra8unorm-srgb' is not in supported formats []
It looks like wgpu reports that the surface simply has zero supported formats. Could this be because it's on WSL2? Ideas @rajveermalviya ?
Reporting here because the error asks me to!
I was running the following script from the pygfx README:
When running the script (with the
RUST_BACKTRACE
environment variable set), I receive the following error, observed both with Qt and glfw windows:pygfx: 0.2.0 wgpu: 0.15.3 System: Ubuntu 22.04.3 LTS, WSL2
Notably, the script runs just fine on Windows.