Merge pull request #357 from steve-lunarg/intrinsics

HLSL: Add asdouble, fma, & mad intrinsics
This commit is contained in:
John Kessenich 2016-06-29 10:50:33 -06:00 committed by GitHub
commit 187254b92c
13 changed files with 810 additions and 745 deletions

View file

@ -524,6 +524,7 @@ enum TOperator {
EOpF16tof32, // HLSL conversion: half of an UnpackHalf2x16
EOpLit, // HLSL lighting coefficient vector
EOpTextureBias, // HLSL texture bias: will be lowered to EOpTexture
EOpAsDouble, // slightly different from EOpUint64BitsToDouble
};
class TIntermTraverser;

View file

@ -368,8 +368,8 @@ bool DeduceVersionProfile(TInfoSink& infoSink, EShLanguage stage, bool versionNo
bool correct = true;
if (source == EShSourceHlsl) {
version = 450; // TODO: GLSL parser is still used for builtins.
profile = ENoProfile;
version = 450; // TODO: GLSL parser is still used for builtins.
profile = ECoreProfile; // allow doubles in prototype parsing
return correct;
}