-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use a temp device to get the default limits.
Originally I was using the limits in capability_info.ts but passing unknown limits, like maxStorageBuffersInFragmentStage, to an adapter that doesn't know that limit ends up causing an error. So, instead, create temp adapter and from that a temp device with no limits requested to query the limits. We can't query until the first request since getGPU is not async.
- Loading branch information
Showing
1 changed file
with
35 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters