| 779 | } |
| 780 | } |
| 781 | void HLSLCompiler::translateCastingExpression(M4::HLSLCastingExpression* expression) |
| 782 | { |
| 783 | // (VSInput)0 |
| 784 | if (expression->type.baseType == M4::HLSLBaseType_UserDefined) { |
| 785 | M4::HLSLExpression* val = expression->expression; |
| 786 | std::string sname = expression->type.typeName; |
| 787 | |
| 788 | // just use default constructor for now |
| 789 | m_gen.Function.NewObjectByName(sname); |
| 790 | } |
| 791 | // (float)2.5f |
| 792 | else { |
| 793 | translateExpression(expression->expression); |
| 794 | m_convertType(expression->type); |
| 795 | } |
| 796 | } |
| 797 | void HLSLCompiler::translateArguments(M4::HLSLArgument* argument) |
| 798 | { |
| 799 | m_curFuncData->Arguments.clear(); |
nothing calls this directly
no outgoing calls
no test coverage detected