| 902 | } |
| 903 | } |
| 904 | void HLSLCompiler::translateArrayAccess(M4::HLSLArrayAccess* expr) |
| 905 | { |
| 906 | translateExpression(expr->index); |
| 907 | |
| 908 | bool temp_isSet = m_isSet; |
| 909 | m_isSet = false; |
| 910 | translateExpression(expr->array); |
| 911 | m_isSet = temp_isSet; |
| 912 | |
| 913 | if (m_isSet) { |
| 914 | m_gen.Function.SetArrayElement(); |
| 915 | translateExpression(expr->array); |
| 916 | } else |
| 917 | m_gen.Function.GetArrayElement(); |
| 918 | } |
| 919 | void HLSLCompiler::translateFunctionCall(M4::HLSLFunctionCall* expr) |
| 920 | { |
| 921 | // mul(a,b) |
nothing calls this directly
no outgoing calls
no test coverage detected