forked from gpuweb/cts
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor shader/types.ts: Add accessSuffixes to type info (gpuweb#3864)
When testing accesses into uniform address space, the array tests pack scalars into a 4-element vector. This is a big hack, to accommodate the 16byte alignment requirement for uniform address space. Previously the robust access tests had a subtle tight coupling to this decision. This change adds a 'accessSuffixes' field to the array type info to indicate how to access individual scalar elements under test. So in the uniform case, when a vec4 is artificially created, return a list of the .x .y .z .w components to get the original scalar values back. This allows client tests to smoothly generalize. Update the robust access tests to this change. It's the only affected test. Issue: gpuweb#3405
- Loading branch information
Showing
3 changed files
with
25 additions
and
15 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