Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show a message when the tests can't run at all (like WebGPU doesn't exist or requestAdapter fails) #3825

Open
greggman opened this issue Jun 28, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@greggman
Copy link
Contributor

This is in response to someone trying to run in compat mode and not knowing that they needed to use compatibility=1

I'm not sure where to put something like this. There's print_environment.spec.ts but I think that happens too late.

Effectively,

  • if gpu doesn't exist we should print a message

    No WebGPU

  • if requestAdapter returns null should print a message like

    Failed to get an adapter. If you meant to run in compatibility mode add compatibility=1
    to the URL or --compat in dawn.node or other tools

Since we wrap requestAdapter, maybe we could check this on first call to it? But I'm not sure how to surface the message.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant