steve-lunarg
e5921f1309
HLSL: Fix unary and binary operator type conversion issues
...
This fixes defects as follows:
1. handleLvalue could be called on a non-L-value, and it shouldn't be.
2. HLSL allows unary negation on non-bool values. TUnaryOperator::promote
can now promote other types (e.g, int, float) to bool for this op.
3. HLSL allows binary logical operations (&&, ||) on arbitrary types, similar
(2).
4. HLSL allows mod operation on arbitrary types, which will be promoted.
E.g, int % float -> float % float.
2016-10-18 16:56:37 -06:00
..
2016-10-18 16:56:37 -06:00
2016-09-29 23:59:26 -06:00
2016-09-29 10:25:15 -06:00
2016-10-13 12:32:04 -06:00
2016-10-13 12:32:04 -06:00
2016-10-16 12:22:20 -06:00
2016-09-25 20:26:03 -06:00
2016-09-19 00:06:19 -06:00
2016-10-01 17:11:21 -06:00
2016-10-04 17:07:45 -06:00
2016-09-29 10:25:15 -06:00
2016-09-29 10:25:15 -06:00
2016-10-06 10:51:52 -06:00
2016-09-29 10:25:15 -06:00
2016-10-16 12:12:11 -06:00
2016-10-16 12:22:20 -06:00
2016-10-16 12:22:20 -06:00
2016-09-29 10:25:15 -06:00
2016-10-14 18:44:32 -06:00
2016-10-06 10:51:52 -06:00
2016-10-06 10:51:52 -06:00
2016-10-06 10:51:52 -06:00
2016-10-18 16:56:37 -06:00
2016-10-18 16:56:37 -06:00
2016-10-06 13:06:13 -06:00
2016-09-29 10:25:15 -06:00
2016-10-18 16:56:37 -06:00
2016-10-02 16:57:58 -06:00
2016-09-19 23:12:48 -06:00
2016-10-12 12:39:44 -06:00
2016-10-14 18:44:32 -06:00
2016-10-14 18:44:32 -06:00
2016-10-14 18:44:32 -06:00
2016-10-06 16:56:54 -06:00
2016-09-20 13:22:58 -06:00
2016-10-12 12:39:44 -06:00
2016-09-16 18:05:44 -06:00
2016-09-29 10:25:15 -06:00
2016-10-12 12:39:44 -06:00
2016-10-06 13:06:13 -06:00
2016-10-06 13:06:13 -06:00
2016-10-02 16:57:58 -06:00
2016-09-27 10:35:09 +02:00
2016-09-14 14:43:55 +08:00
2016-09-30 14:26:34 -06:00
2016-10-10 16:55:04 +08:00
2016-09-26 17:02:44 -06:00
2016-09-26 17:02:44 -06:00
2016-10-07 11:50:25 -06:00
2016-09-22 15:58:06 -06:00
2016-09-20 20:31:27 -06:00
2016-10-05 13:42:42 -06:00
2016-09-20 20:31:27 -06:00
2016-10-11 14:40:35 +08:00