HLSL: Correct some mistakes for min16 types

- Add missing constructor ops to support float16/int16/uint16 types
- Allow half float literals
- Correct two errors of double literal parse in HLSL: extension check and
  postfix
This commit is contained in:
Rex Xu 2018-03-12 23:15:11 +08:00
parent 845860d565
commit a00e51b5b2
5 changed files with 50 additions and 9 deletions

View file

@ -298,6 +298,7 @@ enum EHlslTokenClass {
EHTokConstantBuffer,
// constant
EHTokFloat16Constant,
EHTokFloatConstant,
EHTokDoubleConstant,
EHTokIntConstant,