-
Notifications
You must be signed in to change notification settings - Fork 195
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
glsl-out: Perform casts in int only math functions
Some math functions in naga's IR support both signed and unsigned integers as arguments but only signed integers in GLSL, this was somewhat accounted for with casts of the result from int to uint. But the arguments weren't being cast from uint to int, causing illegal GLSL to be produced, this PR fixes it by also casting arguments.
- Loading branch information
Showing
1 changed file
with
46 additions
and
22 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