WebGPU Device Limits #3299
Labels
api: webgpu
Issues with direct interface with WebGPU
external: upstream
Issues happening in lower level APIs or platforms
help required
We need community help to make this happen.
type: bug
Something isn't working
Is your feature request related to a problem? Please describe.
When compiling to WebGPU, you cannot specify device limits beyond the default limits provided by the implementation - for example, if you wish to request that the
max_storage_buffer_binding_size
limit be increased. Currently, any user-defined limits are simply ignored, as seen here: https://github.com/gfx-rs/wgpu/blob/master/wgpu/src/backend/web.rs#L1237Additional context
After some discussion with several users on Matrix, it seems that the issue stems from the fact that
web-sys
doesn't have any bindings for setting the limits in https://docs.rs/web-sys/latest/web_sys/struct.GpuDeviceDescriptor.htmlThe struct contains a member that is
record<DOMString, GPUSize64> requiredLimits
, which apparently is where the problem starts (record<>
is not supported by web-sys?). Maybe others can chime in with additional context here.The text was updated successfully, but these errors were encountered: