Skip to content

Provide native-only defaults for Limits #8336

@Bromles

Description

@Bromles

Is your feature request related to a problem? Please describe.
Currently, we have several options for specifying limits:

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

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions