这是indexloc提供的服务,不要输入任何密码
Skip to content

How to deal with limited nr of samplers allowed to be created on native APIs? #5142

@teoxoy

Description

@teoxoy

wgpu deduplicates samplers on creation but the limits can still be reached due to lodMinClamp/lodMaxClamp being floating-point numbers.

What should happen when implementations reach those limits?
Some options I see:

  1. Lose the device.
  2. Return an OOM (even if it's not a true out of memory).
  3. Add a new limit and require implementations to dededuplicate.

Metadata

Metadata

Assignees

No one assigned

    Labels

    apiWebGPU API

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions