-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support validating buffer usage with usage validation mode
This patch adds `UsageValidationMode` as the third parameter of `ValidateCanUseAs` with a buffer as input to align with the format of the function `ValidateCanUseAs` with a texture as input. This patch also updates the test `InternalStorageBufferBindingTests` by using classes in `native::` instead of the `wgpu::` to better test the `internal usage` of the buffers. Bug: chromium:42240463 Test: dawn_unittests Change-Id: I2db2c922555ded050949da20828be17c95499152 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/204914 Commit-Queue: Jiawei Shao <[email protected]> Reviewed-by: Corentin Wallez <[email protected]>
- Loading branch information
1 parent
7678e69
commit 1f3f5df
Showing
9 changed files
with
152 additions
and
94 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
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
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
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
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
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
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
Oops, something went wrong.