Open a1phyr opened 2 years ago
Wgpu doesn't support more than 4
as sample count value because thats the max supported value in the browsers, also hardware support for more than 4/8 samples is really really rare and usually exists in cards like nvidia tesla.
We definitely still shouldn't be panicking though and definitely not within the allocator, we should give a normal wgpu error.
Description Creating a texture with a high
sample_count
results in a panic ingpu-alloc
('attempt to subtract with overflow')Repro steps
Run this code (using
pollster
):Expected vs observed behavior This code should not panic, or at least from
wgpu
validation.Extra materials This only happens with my AMD card, with NVIDIA or llvmpipe I don't get the panic. Using
4
assample_count
works as expected.Backtrace:
Platform Debian testing with Xorg