HLSL: Add min*{float,int,uint} types
authorsteve-lunarg <steve_gh@khasekhemwy.net>
Thu, 27 Oct 2016 01:18:55 +0000 (19:18 -0600)
committersteve-lunarg <steve_gh@khasekhemwy.net>
Mon, 31 Oct 2016 18:46:05 +0000 (12:46 -0600)
commit3226b0835ca34e363fc66939e3a20b8753e07bd7
tree0398597bb6fdb849c831ca2d6ed9ec674b97f812
parente19e68d4313617b8fe8bb68578d2de51507e603f
HLSL: Add min*{float,int,uint} types

These HLSL types are guaranteed to have at least the given number of bits, but may have more.

min{16,10}float is mapped to EbtFloat at medium precision -> SPIRV RelaxedPrecision
min{16,12}int and min16uint are mapped to mediump -> SPIR-V RelaxedPrecision
Test/baseResults/hlsl.mintypes.frag.out [new file with mode: 0644]
Test/hlsl.mintypes.frag [new file with mode: 0644]
gtests/Hlsl.FromFile.cpp
hlsl/hlslGrammar.cpp
hlsl/hlslScanContext.cpp
hlsl/hlslTokens.h