| 2638 | }*/ |
| 2639 | |
| 2640 | bool HLSLParser::CheckTypeCast(const HLSLType& srcType, const HLSLType& dstType) |
| 2641 | { |
| 2642 | if (GetTypeCastRank(m_tree, srcType, dstType) == -1) { |
| 2643 | const char* srcTypeName = GetTypeNameHLSL(srcType); |
| 2644 | const char* dstTypeName = GetTypeNameHLSL(dstType); |
| 2645 | m_tokenizer.Error("Cannot implicitly convert from '%s' to '%s'", srcTypeName, dstTypeName); |
| 2646 | return false; |
| 2647 | } |
| 2648 | return true; |
| 2649 | } |
| 2650 | |
| 2651 | bool HLSLParser::ParseExpression(HLSLExpression*& expression) |
| 2652 | { |
nothing calls this directly
no test coverage detected