-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add function to count number of unpacked varying vectors
This counts the number of vectors used by each active varying in a shader. This can be used to ensure that a shader will succesfully compile without using more than GL_MAX_VARYING_VECTORS on devices that do not perform spec-compliant packing of varyings. This is in contrast to sh::CheckVariablesWithinPackingLimits(), which checks whether there are enough vectors *with* spec-compliant packing.
- Loading branch information
1 parent
898bde1
commit 5317496
Showing
3 changed files
with
30 additions
and
1 deletion.
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