-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Description
Is your feature request related to a problem? Please describe.
Currently, we have several options for specifying limits:
downlevel_defaults
, which is guaranteed to work everywhere except on WebGLdownlevel_webgl2_defaults
, which is guaranteed to work even on WebGLdefaults
, which is guaranteed to work on primary backends, including WebGPU
However, wgpu currently has many native-only features, such as push constants, binding arrays, and others. Also, there is a possibility for web-compatible limits to be higher on the native (e.g., a higher max bind group count).
The convenient methods mentioned above set native-only limits to 0, since they are incompatible with WebGPU and downlevel backends.
Describe the solution you'd like
It would be nice to add a native_defaults
method to the Limits struct to provide guaranteed values for the native platforms, including native-only features and appropriate native limits
Describe alternatives you've considered
If that's not possible, we could at least specify expected values for each limit field, since some fields - such as min_subgroup_size
- do not currently have them
Additional context
Metadata
Metadata
Assignees
Labels
Type
Projects
Status