-
Notifications
You must be signed in to change notification settings - Fork 82
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Speed up Texture Builtin tests (#3980)
The slowest part of the test is generating random textures via `TexelView.fromTexelsAsColors`. This is because it calls a deep hierarchy of functions to generate a PerTexelComponent<number> per texel where the values are quantized to match what the GPU should return so that the software texture functions works with similar values. For many formats though, we can just fill a typearray with random data and pass that data to `TexelView.fromTextureDataByReference` which is orders of magnitude faster.
- Loading branch information
Showing
1 changed file
with
97 additions
and
10 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