Skip to content

Add allow_unsafe_apis toggle to Dawn as a dependency flag #9

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

Merged
merged 1 commit into from
Jan 11, 2025

Conversation

CoffeeImpliesCode
Copy link
Contributor

WebGPU features like Timestamp Queries are disabled by default via the validation layers as they are considered unsafe for web use. So to use these features we need to explicitly allow them. Once enabled, a GraphicsContext can be successfully created with the "timestamp_query" and "timestamp_query_inside_passes" features, instead of having to disable all validation to create timestamp QuerySets.

@hazeycode hazeycode merged commit 50be300 into zig-gamedev:main Jan 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants