Merge pull request #117 from amdrexu/feature
SPV: Implement GLSL built-in bitcast functions.
This commit is contained in:
commit
b6d7fa91a1
4 changed files with 285 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue