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
The viewer encounters an error where the max_storage_buffer_binding_size limit is exceeded, causing a panic. The current setup requests a buffer size that surpasses the allowed limit of the GPU, resulting in a runtime panic.
Error Message
thread 'main' panicked at /home/mohsen/code/gs-viewer/web-splat/src/lib.rs:123:14:
called `Result::unwrap()` on an `Err` value: RequestDeviceError { inner: Core(LimitsExceeded(FailedLimit { name: "max_storage_buffer_binding_size", requested: 1073741823, allowed: 134217728 })) }
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Proposed Solution
Modify the WGPUContext setup to dynamically query the adapter limits and set the maximum values supported by the GPU. This approach ensures that the application respects the hardware capabilities and avoids exceeding the limits.
… limits
Query adapter limits and set max_storage_buffer_binding_size to the maximum
supported value to prevent runtime panics due to exceeded limits.
Addresses issue KeKsBoTer#9.
… limits
Query adapter limits and set max_storage_buffer_binding_size to the maximum
supported value to prevent runtime panics due to exceeded limits.
Addresses issue #9.
Description
The viewer encounters an error where the
max_storage_buffer_binding_size
limit is exceeded, causing a panic. The current setup requests a buffer size that surpasses the allowed limit of the GPU, resulting in a runtime panic.Error Message
Proposed Solution
Modify the
WGPUContext
setup to dynamically query the adapter limits and set the maximum values supported by the GPU. This approach ensures that the application respects the hardware capabilities and avoids exceeding the limits.The text was updated successfully, but these errors were encountered: