glslang-zig/hlsl
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
..
CMakeLists.txt Add base class TParseables for intrinsic / builtin generation. 2016-05-23 15:44:53 -06:00
hlslGrammar.cpp HLSL: Fix unary and binary operator type conversion issues 2016-10-18 16:56:37 -06:00
hlslGrammar.h HLSL: Move to correct parsing of annotations, improving all annotations and recent string grammar. 2016-09-20 13:22:58 -06:00
hlslOpMap.cpp HLSL: Basic array grammar. 2016-06-19 11:50:34 -06:00
hlslOpMap.h HLSL: Add (almost) full expression grammar: Binary, unary (pre/post-fix), assign, ... 2016-05-03 23:33:00 -06:00
hlslParseables.cpp HLSL: Fix unary and binary operator type conversion issues 2016-10-18 16:56:37 -06:00
hlslParseables.h Add lerp, fix sincos return type, ret type tests, non-square mats, HLSL->AST tx semantics 2016-06-21 10:10:48 -06:00
hlslParseHelper.cpp HLSL: Support SV_Coverage and SV_DispatchThreadId; catch SV_GroupIndex. 2016-10-16 12:12:11 -06:00
hlslParseHelper.h HLSL: phase 3a: Add sub-vec4 rwtexture formats (qualifier.layoutFormat) 2016-10-14 18:44:32 -06:00
hlslScanContext.cpp HLSL: phase 1: add RWTexture and RWBuffer 2016-10-06 10:51:52 -06:00
hlslScanContext.h HLSL: Implement basic "struct" grammar. 2016-06-12 23:54:31 -06:00
hlslTokens.h HLSL: phase 1: add RWTexture and RWBuffer 2016-10-06 10:51:52 -06:00
hlslTokenStream.cpp HLSL: Fix a grammar error related to constructors in parenthetical expressions 2016-07-30 08:09:09 -06:00
hlslTokenStream.h HLSL: Fix a grammar error related to constructors in parenthetical expressions 2016-07-30 08:09:09 -06:00