Merge pull request #117 from amdrexu/feature

SPV: Implement GLSL built-in bitcast functions.
This commit is contained in:
John Kessenich
2015-12-19 11:08:02 -07:00
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;