You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Tested on two macs, Intel Xeon cpu w/ rx 6900 xt, and M1 Pro cpu/gpu.
Logs:
non-verbose
thread '<unnamed>' panicked at src/lib.rs:3831:22:
Identifier refers to disabled backend feature "empty"
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
fatal runtime error: failed to initiate panic, error 5
Reported C++ that is causing the panic: WGPUTextureFormat surfaceFormat = wgpuSurfaceGetPreferredFormat(surface, adapter);
Output when the line is changed to WGPUTextureFormat surfaceFormat = WGPUTextureFormat_RGBA8Uint;
Noted because on #393 which is very similar, someone commented "It looks like wgpu reports that the surface simply has zero supported formats" and this prints the other formats:
thread '<unnamed>' panicked at src/lib.rs:586:5:
Error in wgpuSurfaceConfigure: Validation Error
Caused by:
Requested format Rgba8Uint is not in list of supported formats: [Bgra8Unorm, Bgra8UnormSrgb, Rgba16Float, Rgb10a2Unorm]
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
fatal runtime error: failed to initiate panic, error 5
So then using a supported format, Rgba16Float (on the rx 6900 xt on macos) WGPUTextureFormat surfaceFormat = WGPUTextureFormat_RGBA16Float;
works great!
So the issue is just with wgpuSurfaceGetPreferredFormat itself.
Additionally the same code under dawn works fine using wgpuSurfaceGetPreferredFormat.
Thanks all here for working on wgpu-native.
Additionally, I may be doing something incorrectly on my end, I apologize if so and would appreciate feedback.
The text was updated successfully, but these errors were encountered:
Tested on two macs, Intel Xeon cpu w/ rx 6900 xt, and M1 Pro cpu/gpu.
Logs:
non-verbose
verbose
Reported C++ that is causing the panic:
WGPUTextureFormat surfaceFormat = wgpuSurfaceGetPreferredFormat(surface, adapter);
Output when the line is changed to
WGPUTextureFormat surfaceFormat = WGPUTextureFormat_RGBA8Uint;
Noted because on #393 which is very similar, someone commented "It looks like wgpu reports that the surface simply has zero supported formats" and this prints the other formats:
So then using a supported format, Rgba16Float (on the rx 6900 xt on macos)
WGPUTextureFormat surfaceFormat = WGPUTextureFormat_RGBA16Float;
works great!
So the issue is just with
wgpuSurfaceGetPreferredFormat
itself.Additionally the same code under dawn works fine using
wgpuSurfaceGetPreferredFormat
.Thanks all here for working on wgpu-native.
Additionally, I may be doing something incorrectly on my end, I apologize if so and would appreciate feedback.
The text was updated successfully, but these errors were encountered: