diff options
Diffstat (limited to 'source/slang/slang-emit-cpp.cpp')
| -rw-r--r-- | source/slang/slang-emit-cpp.cpp | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/source/slang/slang-emit-cpp.cpp b/source/slang/slang-emit-cpp.cpp index 4c2e6032d..7fb04c33b 100644 --- a/source/slang/slang-emit-cpp.cpp +++ b/source/slang/slang-emit-cpp.cpp @@ -951,33 +951,6 @@ void CPPSourceEmitter::_emitVecMatMulDefinition(const UnownedStringSlice& funcNa writer->emit("}\n\n"); } -void CPPSourceEmitter::_emitCrossDefinition(const UnownedStringSlice& funcName, const HLSLIntrinsic* specOp) -{ - _emitSignature(funcName, specOp); - - SourceWriter* writer = getSourceWriter(); - - writer->emit("\n{\n"); - writer->indent(); - - writer->emit("return "); - if (m_target == CodeGenTarget::CUDASource) - { - m_writer->emit("make_"); - emitType(specOp->returnType); - writer->emit("( a.y * b.z - a.z * b.y, a.z * b.x - a.x * b.z, a.x * b.y - a.y * b.x ); \n"); - } - else - { - emitType(specOp->returnType); - writer->emit("{ a.y * b.z - a.z * b.y, a.z * b.x - a.x * b.z, a.x * b.y - a.y * b.x }; \n"); - } - - - writer->dedent(); - writer->emit("}\n\n"); -} - UnownedStringSlice CPPSourceEmitter::_getAndEmitSpecializedOperationDefinition(HLSLIntrinsic::Op op, IRType*const* argTypes, Int argCount, IRType* retType) { HLSLIntrinsic intrinsic; @@ -1422,10 +1395,6 @@ void CPPSourceEmitter::emitSpecializedOperationDefinition(const HLSLIntrinsic* s { return _emitAnyAllDefinition(_getFuncName(specOp), specOp); } - case Op::Cross: - { - return _emitCrossDefinition(_getFuncName(specOp), specOp); - } case Op::Normalize: { return _emitNormalizeDefinition(_getFuncName(specOp), specOp); |
