vkd3d-shader/hlsl: Add support for sign() intrinsic.
This replicates what seems to be happening when using sign() with shader model 3, which is roughly...
int pos = (int) (x > 0);
int neg = -((int) (x < 0));
int result = pos + neg;
Edited by Ethan Lee
Merge request reports
Activity
added 4 commits
-
28b2281b...b46df551 - 2 commits from branch
wine:master
- 3876050f - vkd3d-shader/hlsl: Add support for sign() intrinsic.
- 24cb3761 - tests: Add tests for sign() intrinsic.
-
28b2281b...b46df551 - 2 commits from branch
Updated to fix a comment that could have potentially been misleading, otherwise functionality is the same as before.
EDIT: Also, ignore me being very bad at rebasing...
Edited by Ethan Leeadded 4 commits
-
a737bdf4...b46df551 - 2 commits from branch
wine:master
- 337bbc74 - vkd3d-shader/hlsl: Add support for sign() intrinsic.
- b8935a31 - tests: Add tests for sign() intrinsic.
-
a737bdf4...b46df551 - 2 commits from branch
- Resolved by Ethan Lee
added 6 commits
-
00569e5b...06cc2e1a - 4 commits from branch
wine:master
- c4357ae6 - vkd3d-shader/hlsl: Add support for sign() intrinsic.
- 69924d96 - tests: Add tests for sign() intrinsic.
-
00569e5b...06cc2e1a - 4 commits from branch
added 9 commits
-
69924d96...af4bb037 - 7 commits from branch
wine:master
- 2f669659 - vkd3d-shader/hlsl: Add support for sign() intrinsic.
- a574810c - tests: Add tests for sign() intrinsic.
-
69924d96...af4bb037 - 7 commits from branch
- Resolved by Ethan Lee
added 13 commits
-
30384ea4...af4bb037 - 11 commits from branch
wine:master
- 092e7725 - vkd3d-shader/hlsl: Add support for sign() intrinsic.
- e0a31d36 - tests: Add tests for sign() intrinsic.
-
30384ea4...af4bb037 - 11 commits from branch
Another thought, though no need to change this MR: when you can, first adding the tests (with appropriate
todo
hints) and then the implementation (removing thetodo
hints) helps the reader understanding what your commit is actually fixing. It's pretty trivial in this case, but a good habit nevertheless I think.added 8 commits
-
e0a31d36...7ba37394 - 6 commits from branch
wine:master
- ba8dfdc8 - vkd3d-shader/hlsl: Add support for sign() intrinsic.
- d2ca24b0 - tests: Add tests for sign() intrinsic.
-
e0a31d36...7ba37394 - 6 commits from branch
Please register or sign in to reply