-
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-in: Perform casts in int only math functions
Some functions like abs only accept signed integers while naga's IR accepts both signed and unsigned integers, this wasn't accounted for in the glsl backend causing it to produce code that wouldn't type check. This commit addresses it by performing casts from uint to int of the function argument and then back from int to uint for the function return.
- Loading branch information
Showing
1 changed file
with
51 additions
and
23 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