SPV: Implement GLSL built-in bitcast functions.

This commit is contained in:
Rex Xu 2015-12-15 16:03:10 +08:00
parent ea0cb2eb11
commit cbc426ee62
4 changed files with 285 additions and 0 deletions

View file

@ -2531,6 +2531,13 @@ spv::Id TGlslangToSpvTraverser::createUnaryOperation(glslang::TOperator op, spv:
unaryOp = spv::OpIsInf;
break;
case glslang::EOpFloatBitsToInt:
case glslang::EOpFloatBitsToUint:
case glslang::EOpIntBitsToFloat:
case glslang::EOpUintBitsToFloat:
unaryOp = spv::OpBitcast;
break;
case glslang::EOpPackSnorm2x16:
libCall = spv::GLSLstd450PackSnorm2x16;
break;