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
..
2015-12-10 18:01:54 -07:00
2015-12-10 18:01:54 -07:00
2016-09-27 10:30:14 +02:00
2016-05-03 19:34:00 -06:00
2015-12-10 18:01:54 -07:00
2016-05-11 15:50:41 +08:00
2016-09-19 16:01:41 -06:00
2016-05-23 23:10:18 -06:00
2016-07-08 14:49:48 -06:00
2016-09-19 16:01:41 -06:00
2016-09-19 16:01:41 -06:00
2016-05-11 15:50:41 +08:00
2016-07-07 19:27:15 -06:00
2016-10-14 18:44:32 -06:00
2016-10-13 12:32:04 -06:00
2016-10-16 12:22:20 -06:00
2016-10-12 16:16:24 +02: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-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-14 18:44:32 -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-14 18:44:32 -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-18 16:56:37 -06:00
2016-10-18 16:56:37 -06:00
2016-10-14 18:44:32 -06:00
2016-10-18 16:56:37 -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-14 18:44:32 -06:00
2016-10-14 18:44:32 -06:00
2016-10-14 18:44:32 -06:00
2016-10-14 18:50:37 -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-14 18:44:32 -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-14 18:44:32 -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-14 18:44:32 -06:00
2016-10-14 18:44:32 -06:00
2016-10-14 18:44:32 -06:00
2016-10-12 12:39:44 -06:00
2016-10-12 12:39:44 -06:00
2015-12-10 18:01:54 -07:00
2016-08-25 10:46:51 -06:00
2016-05-16 19:32:59 -06:00
2016-05-11 16:38:50 +08:00
2016-02-15 21:46:55 -07:00
2016-02-15 21:46:55 -07:00
2016-02-15 21:46:55 -07:00
2016-02-15 21:46:55 -07:00
2016-10-10 16:55:04 +08:00
2016-05-21 09:45:47 +08:00
2016-10-12 16:16:24 +02:00
2016-10-11 14:40:35 +08:00
2016-02-15 21:46:55 -07:00